Search
 
SCRIPT & CODE EXAMPLE
 

PHP

remove gutenberg cpt

	add_filter( 'use_block_editor_for_post_type', 'prefix_disable_gutenberg', 10, 2 );
	function prefix_disable_gutenberg( $current_status, $post_type ) {
		// Use your post type key instead of 'page or post'
		if ( in_array( $post_type, array( 'page', 'post' ) ) ) {
			return false;
		}
		return $current_status;
	}
Comment

PREVIOUS NEXT
Code Example
Php :: How to disable Gutenberg / block editor for certain post types 
Php :: whereHas site:https://laravel.com/docs/ 
Php :: php receive post 
Php :: php artisan queue table 
Php :: laravel eloquent get specific columns using with function 
Php :: add options page advanced custom fields 
Php :: php example 
Php :: give custom field name in laravel form validation error message 
Php :: check installed php modules in linux 
Php :: grouping route in laravel 
Php :: custom rule laravel validation 
Php :: not get child all data in relationship with parent laravel eloquent 
Php :: Remove All Spaces Out of a String in PHP 
Php :: in_array associative array php 
Php :: laravel collection toQuery 
Php :: adminlte in laravel 8 
Php :: print in php 
Php :: php rand int 
Php :: laravel model fillable vs guarded 
Php :: calculate percentage of amount in php 
Php :: grouping routes based on controller laravel 
Php :: laravel validation double 
Php :: date_default_timezone_set(): timezone id 
Php :: laravel model with migration 
Php :: check if host is local in php 
Php :: how to read from temp files php 
Php :: config file php 
Php :: get last element of array php 
Php :: sanitize file name 
Php :: copy php array to another 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =