Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

wordpress classic editor on post type

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 'product'
    if ($post_type === 'product') return false;
    return $current_status;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #wordpress #classic #editor #post #type
ADD COMMENT
Topic
Name
5+7 =