Title: Admin menu capability
Last modified: November 30, 2022

---

# Admin menu capability

 *  Resolved [Jose Mortellaro](https://wordpress.org/support/users/giuse/)
 * (@giuse)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/admin-menu-capability-2/)
 * Hello,
 * at line 48 of the file classes/WpMatomo/Admin/Menu.php you define const CAP_NOT_EXISTS
   = ‘unknownfoobar’;
    Please, check this file: [https://plugins.trac.wordpress.org/browser/matomo/tags/4.12.0/classes/WpMatomo/Admin/Menu.php#L48](https://plugins.trac.wordpress.org/browser/matomo/tags/4.12.0/classes/WpMatomo/Admin/Menu.php#L48)
 * Then at line 77 of the same file, you add an admin menu page using the capability“
   unknownfoobar”:
    This is your code:
 * `add_menu_page( 'Matomo Analytics', 'Matomo Analytics', self::CAP_NOT_EXISTS,'
   matomo', null, 'dashicons-analytics' );`
 * It looks like nowhere in your plugin you add the capability “unknownfoobar”. 
   At least, I don’t see it anywhere.
    Can I ask you why you are adding an admin
   menu item with a capability that doesn’t exist?
 * I opened this thread because your plugin generates a conflict with [Freesoul Deactivate Plugins](https://wordpress.org/plugins/freesoul-deactivate-plugins/).
   With FDP you can selectively disable plugins, and it rebuilds the admin menu 
   in the backend. But becausee the logged user hasn’t the capability “unknownfoobar”,
   the admin menu item added by your plugin is missing when FDP is active.
 * Thank you for your help.
 * Best regards
 * Jose

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

 *  Plugin Support [varunmatomo](https://wordpress.org/support/users/varunmatomo/)
 * (@varunmatomo)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/admin-menu-capability-2/#post-16314796)
 * Hi [@giuse](https://wordpress.org/support/users/giuse/) sorry for the delay. 
   I will escalate this issue for review and provide an update when we have one.
   
   Sorry for the inconvenience caused and thank you for bringing this to our attention.
    -  This reply was modified 3 years, 5 months ago by [varunmatomo](https://wordpress.org/support/users/varunmatomo/).
 *  Thread Starter [Jose Mortellaro](https://wordpress.org/support/users/giuse/)
 * (@giuse)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/admin-menu-capability-2/#post-16333545)
 * Hello [@varunmatomo](https://wordpress.org/support/users/varunmatomo/) . Many
   thanks! Please, let me know when you have some news.
 * Have a great day!
 * Jose
 *  Plugin Support [varunmatomo](https://wordpress.org/support/users/varunmatomo/)
 * (@varunmatomo)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/admin-menu-capability-2/#post-16339934)
 * [@giuse](https://wordpress.org/support/users/giuse/) you can follow the progression
   on this ticket here: [https://github.com/matomo-org/matomo-for-wordpress/issues/696](https://github.com/matomo-org/matomo-for-wordpress/issues/696)
   
   And add any further comments as needed.
 *  Thread Starter [Jose Mortellaro](https://wordpress.org/support/users/giuse/)
 * (@giuse)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/admin-menu-capability-2/#post-16340614)
 * Thank you very much [@varunmatomo](https://wordpress.org/support/users/varunmatomo/)!
 * Have a great day!
 * Jose

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

The topic ‘Admin menu capability’ is closed to new replies.

 * ![](https://ps.w.org/matomo/assets/icon-256x256.png?rev=3531741)
 * [Matomo Analytics - Powerful, Privacy-First Insights for WordPress](https://wordpress.org/plugins/matomo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/matomo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/matomo/)
 * [Active Topics](https://wordpress.org/support/plugin/matomo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/matomo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/matomo/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Jose Mortellaro](https://wordpress.org/support/users/giuse/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/admin-menu-capability-2/#post-16340614)
 * Status: resolved