Testing of this plugin has been temporarily suspended due to an error. It will automatically resume when a new plugin version is released.
function plt_hide_wp_symposium_pro_menus() {
//Hide "WPS Pro".
remove_menu_page('wps_pro');
//Hide "WPS Pro → Release notes".
remove_submenu_page('wps_pro', 'wps_pro_release_notes');
//Hide "WPS Pro → Setup".
remove_submenu_page('wps_pro', 'wps_pro_setup');
//Hide "WPS Pro → Shortcodes".
remove_submenu_page('wps_pro', 'wps_pro_shortcodes');
//Hide "WPS Pro → Styles (BETA)".
remove_submenu_page('wps_pro', 'wps_pro_styles');
//Hide "WPS Pro → Licence".
remove_submenu_page('wps_pro', 'wps_pro_licence');
//Hide "WPS Pro → Translations".
remove_submenu_page('wps_pro', 'wps_pro_translations');
}
add_action('admin_menu', 'plt_hide_wp_symposium_pro_menus', 11);
function plt_hide_wp_symposium_pro_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Activity Details" meta box.
remove_meta_box('activity_info_box', $screen->id, 'normal');
//Hide the "wps_friendship" meta box.
remove_meta_box('friendship_info_box', $screen->id, 'normal');
//Hide the "Favourite Friend" meta box.
remove_meta_box('favourite_friendship_info_box', $screen->id, 'normal');
//Hide the "Alert Details" meta box.
remove_meta_box('alerts_info_box', $screen->id, 'side');
//Hide the "Post Details" meta box.
remove_meta_box('forum_post_info_box', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_wp_symposium_pro_metaboxes', 20);