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;
}
Also in PHP:
- collection empty laravel
- check if contains a var php
- consol log put in php
- collection get first element laravel
- array unique php index not getting organised
- delete config cache javascript
- "Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/RuleWatchGraph.php on line 52"
- check word is in string php
- delete cache on host laravel
- current user laravel
- clear laravel webapp cache
- age date de naissance php
- check laravel version
- dsiplay datetime without T php
- display picture in pdf generated with laravel
- add page nos. to existing pdf in php
- combox with auto filter, auto search cakephp
- check if substring present in string in php
- Class 'App\Http\Controllers\View' not found
- composer in serveur ionos
- create new record via model in laravel
- check if index of array exists php
- create new directory php
- current uri php[