wp-webhook-netlify-deploy icon indicating copy to clipboard operation
wp-webhook-netlify-deploy copied to clipboard

Admin Bar: allow other user roles

Open devnantes44 opened this issue 5 years ago • 0 comments

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.

devnantes44 avatar Feb 12 '20 17:02 devnantes44