We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The content you are editing has changed. Please copy your edits and refresh the page.
public static function register_wp_core_pattern_category() : void {
public static function register_wp_core_pattern_category() : void { if ( \taxonomy_exists( WP_CORE_PATTERN_TAX ) ) { return; } $args = [ [ 'public' => false, 'hierarchical' => false, 'labels' => [ 'name' => _x( 'Pattern Categories', 'taxonomy general name' ), // phpcs:ignore WordPress.WP.I18n.MissingArgDomain 'singular_name' => _x( 'Pattern Category', 'taxonomy singular name' ), // phpcs:ignore WordPress.WP.I18n.MissingArgDomain ], 'query_var' => false, 'rewrite' => false, 'show_ui' => false, '_builtin' => true, 'show_in_nav_menus' => false, 'show_in_rest' => true, ], ]; \register_taxonomy( WP_CORE_PATTERN_TAX, [ 'wp_block' ], $args ); \register_taxonomy_for_object_type( WP_CORE_PATTERN_TAX, 'wp_block' ); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Tasks
public static function register_wp_core_pattern_category() : void {
The text was updated successfully, but these errors were encountered: