wp-webhook-netlify-deploy
wp-webhook-netlify-deploy copied to clipboard
Admin Bar: allow other user roles
Could you please update the documentation to explain where the following code need to be added (which file and which line):
add_filter('netlify_status_capability', function() {
return 'edit_pages';
});
add_filter('netlify_deploy_capability', function() {
return 'edit_pages';
});
add_filter('netlify_adjust_settings_capability', function() {
return 'edit_pages';
});
This is not obvious for people like me who are not familiar with WordPress structure.