Hi,
We don’t have such an option
It’s a good idea, we might add it in the feature.
Thanks I will be looking out for it! 🙂
Is there a capability I can use to add the permissions via functions.php in the interim or where can I edit the plugin so editors can have access. It is urgent that I set this up.
Many Thanks!
I had a look into wp-content/plugins/pixelyoursite/facebook-pixel-master.php and could add editors access.
From line 82 to 115, replace the code by this one :
if ( ! function_exists( 'pys_admin_menu' ) ) {
function pys_admin_menu() {
/* if ( false == current_user_can( 'manage_options' ) ) { */
if ( false == current_user_can( 'edit_pages' ) ) {
return;
}
/* add_menu_page( 'PixelYourSite', 'PixelYourSite', 'manage_options', 'pixel-your-site', 'pys_admin_page_callback', plugins_url( 'pixelyoursite/img/favicon.png' ) ); */
add_menu_page( 'PixelYourSite', 'PixelYourSite', 'edit_pages', 'pixel-your-site', 'pys_admin_page_callback', plugins_url( 'pixelyoursite/img/favicon.png' ) );
}
add_action( 'admin_menu', 'pys_admin_menu' );
}
if ( ! function_exists( 'pys_restrict_admin_pages' ) ) {
function pys_restrict_admin_pages() {
$screen = get_current_screen();
/* if ( $screen->id == 'toplevel_page_pixel-your-site' & false == current_user_can( 'manage_options' ) ) { */
if ( $screen->id == 'toplevel_page_pixel-your-site' & false == current_user_can( 'edit_pages' ) ) {
wp_die( __( 'Sorry, you are not allowed to access this page.' ) );
}
}
add_action( 'current_screen', 'pys_restrict_admin_pages' );
}
Of course this will be deleted/replaced on the next release, so refind the code and change it again if this feature will still missing 😉
Hope it helps!