Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action('admin_menu', function() {
- if( !apply_filters('wcfmmp_is_allow_admin_menu', true) ) return;
- global $WCFMmp, $menu;
- remove_action('admin_menu', array($WCFMmp->admin, 'wcfmmp_options_page'));
- if (function_exists('get_wcfm_settings_url')) {
- add_menu_page(__('Marketplace', 'wc-multivendor-marketplace'), __('Marketplace', 'wc-multivendor-marketplace'), 'manage_options', 'wcfm_settings_form_marketplace_head', null, null, '54');
- $menu[54] = array(__('Marketplace', 'wc-multivendor-marketplace'), 'manage_options', get_wcfm_settings_url() . '#wcfm_settings_form_marketplace_head', '', 'open-if-no-js menu-top', '', $WCFMmp->plugin_url . 'assets/images/wcfmmp_icon.svg');
- }
- }, 9);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement