Search
 
SCRIPT & CODE EXAMPLE
 

PHP

How to disable Gutenberg / block editor for certain post types

	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 :: get user by meta wp 
Php :: laravel Service Unavailable 
Php :: php tomorrow 
Php :: drupal 9 modify a views query 
Php :: get current authenticated user laravel 
Php :: how to get index 2nd php 
Php :: Install Older Version of Laravel using Composer 
Php :: laravel download file from s3 
Php :: laravel target is not instantiable while building 
Php :: laravel collection distinct 
Php :: laravel response header 
Php :: time now with milliseconds php 
Php :: array intersect 
Php :: array key value php 
Php :: ubuntu 7.2 deleted php 
Php :: php showing code in browser 
Php :: php check version 
Php :: check if variable is set and not empty laravel 
Php :: french special characters php 
Php :: laravel query order by relation 
Php :: php var use in javascript 
Php :: where condition in array in codeigniter 
Php :: how laravel return the old value 
Php :: greater than or equal to in php 
Php :: php include 
Php :: get value from url in laravel blade 
Php :: get google map api 
Php :: recursive binary search php 
Php :: pdo select 
Php :: last_insert_id() php 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =