Gutenberg blocks – template_lock with several post type

This is more of a PHP question than a WordPress one but you could do the following: function wp_template_lock_example() { // Make an array of your post types $post_types = array(‘subject-imposed’, ‘subject-free’, ‘dissertation’); // Loop the array and apply the template details to each. foreach ( $post_types as $post_type ) { $post_type_object = get_post_type_object( $post_type … Read more

How to get the revisions feature back on the classic editor?

I used to disable the Gutenberg with this: //disable gutenburg add_filter(‘use_block_editor_for_post’, ‘__return_false’, 10); This filter disables the Gutenberg sitewide but it doesn’t work smoothly in other custom-post-types. Not only the revisions but other features are also hidden on the post edit screen of custom-post-types. Changing this to the post type filter works smoothly across all … Read more

Changing block quote size in gutenberg

This is controlled by your theme’s css and currently this is not customizable directly within the side editing panel within Gutenberg but can be updated by updating your theme’s CSS (typically named style.css) . The exact css selectors may slightly change for each theme but the following may work for many themes. .entry-content .wp-block-quote p … Read more