WordPress filter hook

wpheka_plugin_panel_menu_page_capability

Fired by 6 WordPress plugins, running on 1,770+ sites between them.

How to use wpheka_plugin_panel_menu_page_capability

It's a filter: your callback receives the value, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'wpheka_plugin_panel_menu_page_capability', function( $value ) {
	// Change $value here.
	return $value;
}, 10, 1 );

Argument names come from WC Moneris Payment Gateway's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

6 plugins that fire wpheka_plugin_panel_menu_page_capability

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. WC Moneris Payment Gateway icon WC Moneris Payment Gateway900+ installs apply_filters( 'wpheka_plugin_panel_menu_page_capability', 'manage_options' ) includes/wpheka-ui/class-menu.php:48
  2. WPHEKA Search & Filter Orders by Product icon WPHEKA Search & Filter Orders by Product800+ installs apply_filters( 'wpheka_plugin_panel_menu_page_capability', 'manage_options' ) framework/Admin/Menu.php:81
  3. WPHEKA Backorder Split icon WPHEKA Backorder Split40+ installs apply_filters( 'wpheka_plugin_panel_menu_page_capability', 'manage_options' ) includes/wpheka-ui/class-menu.php:48
  4. WPHEKA Server Information and phpinfo icon WPHEKA Server Information and phpinfo20+ installs apply_filters( 'wpheka_plugin_panel_menu_page_capability', 'manage_options' ) framework/Admin/Menu.php:81
  5. WPHEKA Request For Quote for WooCommerce icon WPHEKA Request For Quote for WooCommerce10+ installs apply_filters( 'wpheka_plugin_panel_menu_page_capability', 'manage_options' ) includes/wpheka-ui/class-menu.php:48
  6. WPHEKA Edit & Cancel Orders for WooCommerce icon WPHEKA Edit & Cancel Orders for WooCommerceFewer than 10 installs apply_filters( 'wpheka_plugin_panel_menu_page_capability', 'manage_options' ) includes/wpheka-ui/class-menu.php:48

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.