WPIntell

Source evidence

Custom Capability

Instapage Plugin · support · 2023-04-24T04:18:00+00:00

complaintsentiment
mediumseverity
0.75relevance
0replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 34 rows with source links

11.8% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

30 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Bobz unresolved
Could you please add a custom capability instead of manage_options I can then use some other plugin to add custom capability to certain roles, here’s the code you need to change. In my example I used manage_instapage class InstapageCmsPluginWPConnector, L:401 /** * Adds a link to WP admin sidebar. */ public function addInstapageMenu() { $iconSvg = InstapageCmsPluginHelper::getMenuIcon(); add_menu_page( __('Instapage: General settings'), __('Instapage'), 'manage_instapage', 'instapage_manager', array($this, 'loadPluginDashboard'), $iconSvg, 30 ); } class InstapageCmsPluginWPConnector, L:73 /** * Checks if current user can manage the plugin's dashboard. * * @return bool Tru is current user has the permissions. */ public function currentUserCanManage() { return current_user_can('manage_instapage'); } Additionally you would also need to add manage_instapage to Administrator role maybe on plugin_activate/updated hook This topic was modified 3 years, 1 month ago by Bobz .

Comments

0 shown

No comments were stored for this source.