Search
 
SCRIPT & CODE EXAMPLE
 

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');
Comment

PREVIOUS NEXT
Code Example
Php :: display summernonte data with string limit laravel 
Php :: php parse xml 
Php :: blade capitalize first letter 
Php :: get first 200 characters string php 
Php :: laravel with trashed 
Php :: how change default value for enum colun in laravel 
Php :: php remove slashes from json 
Php :: install symfony in terminal 
Php :: showing database table in php 
Php :: pathtophp in ubuntu lampp in moodle 
Php :: get current logged-in user details in Laravel 
Php :: How to set a comment on table using Laravel Schema 
Php :: laravel force user logout 
Php :: wordpress wp_head 
Php :: php mysql error 
Php :: get file name from file path in php 
Php :: how to get time php with am/pm 
Php :: PHP File Open/Read/Close 
Php :: get type of variable php 
Php :: to start XAMPP ubuntu 
Php :: get single row in codeigniter 
Php :: delete all rows from table laravel 
Php :: clear laravel cache 
Php :: bind in pdo 
Php :: HTML Snippets not working in .php files 
Php :: laravel join with multiple conditions 
Php :: php inline if null check 
Php :: how to add newline in php 
Php :: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar:///usr/local/Cellar/composer/1.9.1/bin/composer/src/Composer/DependencyResolver/Solver.php on line 223 mac 
Php :: how to get previous month in php 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =