Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function cptui_register_my_taxes2() {
- /**
- * Taxonomy: intro.
- */
- $labels = [
- "name" => esc_html__( "Introductions", "sacconicase" ),
- "singular_name" => esc_html__( "Introduction", "sacconicase" ),
- ];
- $args = [
- "label" => esc_html__( "Introductions", "sacconicase" ),
- "labels" => $labels,
- "public" => true,
- "publicly_queryable" => true,
- "hierarchical" => true,
- "show_ui" => true,
- "show_in_menu" => true,
- "show_in_nav_menus" => true,
- "query_var" => true,
- "rewrite" => [ 'slug' => 'intro', 'with_front' => true, ],
- "show_admin_column" => false,
- "show_in_rest" => true,
- "show_tagcloud" => false,
- "rest_base" => "intro",
- "rest_controller_class" => "WP_REST_Terms_Controller",
- "rest_namespace" => "wp/v2",
- "show_in_quick_edit" => false,
- "sort" => false,
- "show_in_graphql" => false,
- "meta_box_cb" => "post_tags_meta_box",
- ];
- register_taxonomy( "intro", [ "post" ], $args );
- }
- add_action( 'init', 'cptui_register_my_taxes2' );
Advertisement
Add Comment
Please, Sign In to add comment