Home Plugins custom taxonomies for blocks
Custom Taxonomies for Blocks logo

Custom Taxonomies for Blocks

by taupecatstudios on WordPress.org

WordPress plugin to convert older custom taxonomies so they can be used in the WordPress blocks interface (a.k.a. Gutenberg).

(0)

Custom taxonomies that were developed prior to the release of WordPress 5.0 (the Gutenberg release) may not be compatible with the WordPress block editor.

Custom taxonomies require that the “show_in_rest” property be set to “true” in order to work with the block editor. “show_in_rest” was added with WordPress 4.7 and the integration of the WordPress JSON REST API. Sites using custom taxonomies that were created prior to this likely do not have this property set. Additionally, the default value for “show_in_rest” is “false” (this is poorly documented), ergo older custom taxonomies will not appear in the WordPress block editor interface.

This plugin will take any custom taxonomy where the “show_in_rest” feature is set to “false” and change it to “true”. It will not add any additional REST properties, such as “rest_base” or “rest_controller_class”. If you need those properties set for any reason, you will need to update your custom taxonomy where it is being registered.

Active installations0+
Weekly downloads
8+14.29%
Version1.0.0
Last updated11/6/2019
WordPress version5.0
Tested up to5.3.18
PHP version5.6
Tags
block-editorCustom Taxonomiesgutenberg