Search
 
SCRIPT & CODE EXAMPLE
 

PHP

enable gutenberg for template

add_filter( 'use_block_editor_for_post', 'my_disable_gutenberg', 10, 2 );

function my_disable_gutenberg( $can_edit, $post ) {
  if( $post->post_type == 'page' &&
    get_page_template_slug( $post->ID ) == 'page-gutenberg.php' ) {
    return true;
  }

  return false;
}
Comment

PREVIOUS NEXT
Code Example
Php :: php-like-system-with-notification-using-ajax-jquery 
Php :: php blob to string 
Php :: php version 7.4 
Php :: laravel 8 template favicon 
Php :: Create mocking dependency in unit test Laravel 
Php :: How can apply_filters be used to create a filter hook in wordpress 
Php :: Right triangle start pattern of star 
Php :: php debug backtrace last function 
Php :: print average result in php 
Php :: laravel livewire public property 
Php :: blocking youtube adds in php 
Php :: many to many relationship laravel example 
Php :: Laravel 9 localization not working on live server 
Php :: Date and time Asia karachi php 
Php :: Call to undefined function can() laravel spatie 
Php :: wp_handle_upload return uploaded file name 
Php :: presentar la respuesta del conteo de la tabla una tabla en php 
Php :: laravel join query taking too long 
Php :: php over serial arduino 
Php :: merge two entity symfony 
Php :: button onclick php 
Php :: How To Substract And Add Hours In Laravel Using Carabon? 
Php :: codeigniter input required function in php 
Php :: dreamweaver laravel plugin 
Php :: php echo to stderr 
Php :: same title 2 gigs are allowed in fiverr 
Php :: increas file upload db 
Php :: recuperar dados de um objeto em outra página herança php 
Php :: use compose with different php version debian linux 
Php :: laravel sintax 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =