Search
 
SCRIPT & CODE EXAMPLE
 

PHP

wordpress remove add new button

// You can do this when registering your post type. Like this:

register_post_type(
	'custom_post_type',
  	array(
    	'description' => __( 'description', 'textdomain' ),
      	// etc, etc. Important to remove the 'add new' button:
      	'map_meta_cap' => true,
      	'capabilities' => array( 'create_posts' => false )
    )
);
Comment

PREVIOUS NEXT
Code Example
Php :: centos update php 7 to php 8 
Php :: disable cors policy symfony 
Php :: larevel version artisan 
Php :: php replace every occurrence of character in string 
Php :: how to use javascript variable in php 
Php :: get_transient wordpress 
Php :: string to int php 
Php :: php 7.4 modules list 
Php :: laravel blade dump 
Php :: laravel token logout 
Php :: laravel log daily 
Php :: add user meta 
Php :: wordpress get post by id 
Php :: previous month number in php 
Php :: php.ini path 
Php :: php read csv file into array 
Php :: PHP Numeric String 
Php :: br php 
Php :: wp debug 
Php :: get template directory uri 
Php :: woocommerce get variation price range 
Php :: ajax post example php 
Php :: create slug with php 
Php :: make model inside module laravel 
Php :: laravel 8 insert multiple rows 
Php :: laravel datatable format date column 
Php :: php money_format currency symbol 
Php :: How to request and display data from db in larave 
Php :: PHP (WordPress) - Increase Maximum Upload File Size 
Php :: change datetime format from Y-m-d h:i:s to d-m-Y in php 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =