Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wordpress disable posts

// add  this hook into function.php  file it will disable the post menu from 
//Left Sidebar in wp-admin Dashboard

function remove_posts_menu() {
    remove_menu_page('edit.php');
}
add_action('admin_menu', 'remove_posts_menu');
Source by wordpress.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #wordpress #disable #posts
ADD COMMENT
Topic
Name
6+4 =