• Clever solution IMHO that this plugin simply replaces the default meta boxes with its own. Unfortunately in WP 5 Gutenberg the default category / taxonomy meta boxes still are visible.

Viewing 1 replies (of 1 total)
  • Thread Starter leymannx

    (@leymannx)

    Ah, look! This could temporarily be solved by implementing the following snippet I found on GitHub: https://github.com/WordPress/gutenberg/issues/6912#issuecomment-428403380

    /**
     * Disable display of Gutenberg Post Setting UI for a specific
     * taxonomy. While this isn't the official API for this need,
     * it works for now because only Gutenberg is dependent on the
     * REST API response.
     */
    add_filter( 'rest_prepare_taxonomy', function( $response, $taxonomy ){
    	if ( 'category' === $taxonomy->name ) {
    		$response->data['visibility']['show_ui'] = false;
    	}
    	return $response;
    }, 10, 2 );
Viewing 1 replies (of 1 total)
  • The topic ‘Almost perfect even in Gutenberg’ is closed to new replies.