Title: Editor Access
Last modified: May 22, 2017

---

# Editor Access

 *  Resolved [ZeroGravity](https://wordpress.org/support/users/zerogravity/)
 * (@zerogravity)
 * [9 years ago](https://wordpress.org/support/topic/editor-access-19/)
 * How can I give and editor access to the plugin settings.
 * Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [PixelYourSite](https://wordpress.org/support/users/pixelyoursite/)
 * (@pixelyoursite)
 * [9 years ago](https://wordpress.org/support/topic/editor-access-19/#post-9157010)
 * Hi,
 * We don’t have such an option
 * It’s a good idea, we might add it in the feature.
 *  Thread Starter [ZeroGravity](https://wordpress.org/support/users/zerogravity/)
 * (@zerogravity)
 * [9 years ago](https://wordpress.org/support/topic/editor-access-19/#post-9157216)
 * 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!
 *  [Frank Bergère](https://wordpress.org/support/users/frank4/)
 * (@frank4)
 * [9 years ago](https://wordpress.org/support/topic/editor-access-19/#post-9187167)
 * 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!
    -  This reply was modified 9 years ago by [Frank Bergère](https://wordpress.org/support/users/frank4/).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Editor Access’ is closed to new replies.

 * ![](https://ps.w.org/pixelyoursite/assets/icon-256x256.jpg?rev=3178123)
 * [PixelYourSite - Your smart PIXEL (TAG) & API Manager](https://wordpress.org/plugins/pixelyoursite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pixelyoursite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pixelyoursite/)
 * [Active Topics](https://wordpress.org/support/plugin/pixelyoursite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pixelyoursite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pixelyoursite/reviews/)

## Tags

 * [editor access](https://wordpress.org/support/topic-tag/editor-access/)

 * 3 replies
 * 3 participants
 * Last reply from: [Frank Bergère](https://wordpress.org/support/users/frank4/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/editor-access-19/#post-9187167)
 * Status: resolved