Developer hooks
Add these to your theme's functions.php or a small plugin.
| Hook | Type | Arguments | Use |
|---|---|---|---|
wpheka_plugin_panel_menu_page_capability | filter | string $capability | Who can open the Server Info page, save its setting and see the server details in the admin footer. Default manage_options. |
wpheka_web_server_info_admin_footer | action | none | At the end of the Server Info page, after its content is printed. Despite the name, it does not run in the admin footer. |
wpheka_plugin_panel_menu_page_capability is shared by WPHEKA plugins: it also sets who can open the main WPHEKA menu page.
The wpheka_web_server_info_tabs_array filter and the info_page_{tab}_tab_init actions were removed in 1.9.0.
Example
On a WooCommerce store, let shop managers open the page:
add_filter( 'wpheka_plugin_panel_menu_page_capability', function () {
return 'manage_woocommerce';
} );