-
Home
-
Profile Extra Fields by BestWebSoft
- Tips
function plt_hide_profile_extra_fields_menus() {
//Hide "Profile Extra Fields".
remove_menu_page('profile-extra-fields.php');
//Hide "Profile Extra Fields → All Fields".
remove_submenu_page('profile-extra-fields.php', 'profile-extra-fields.php');
//Hide "Profile Extra Fields → Add New".
remove_submenu_page('profile-extra-fields.php', 'profile-extra-field-add-new.php');
//Hide "Profile Extra Fields → Settings".
remove_submenu_page('profile-extra-fields.php', 'profile-extra-fields-settings.php');
//Hide "Profile Extra Fields → BWS Panel".
remove_submenu_page('profile-extra-fields.php', 'prflxtrflds-bws-panel');
//Hide "Profile Extra Fields → Upgrade to Pro".
remove_submenu_page('profile-extra-fields.php', 'https://bestwebsoft.com/products/wordpress/plugins/profile-extra-fields/?k=c37eed44c2fe607f3400914345cbdc8a&pn=300&v=1.2.8&wp_v=6.5.2');
}
add_action('admin_menu', 'plt_hide_profile_extra_fields_menus', 11);
Where do I put this code?