-
Home
-
WP Post Author – Enhance Your Posts with the Author Bio, Co-Authors, Guest Authors, and Post Rating System, including User Registration Form Builder
- Tips
How to Hide the "WP Post Author" Admin Menu
function plt_hide_wp_post_author_menus() {
//Hide the "WP Post Author" menu.
remove_menu_page('wp-post-author');
}
add_action('admin_menu', 'plt_hide_wp_post_author_menus', 1000000000);
Where do I put this code?
How to Hide the "Form Options" Meta Box
function plt_hide_wp_post_author_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Form Options" meta box.
remove_meta_box('awpa-theme-settings', $screen->id, 'advanced');
}
add_action('add_meta_boxes', 'plt_hide_wp_post_author_metaboxes', 20);