lukethacoder / wp-webhook-netlify-deploy

🚢 WP Plugin that adds functionality to easily send Netlify Webhook requests
https://wordpress.org/plugins/webhook-netlify-deploy
GNU General Public License v3.0
94 stars 18 forks source link

Admin Bar: allow other user roles #19

Open devnantes44 opened 4 years ago

devnantes44 commented 4 years ago

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.