{"id":519,"date":"2011-02-12T01:45:37","date_gmt":"2011-02-11T19:45:37","guid":{"rendered":"http:\/\/w4dev.com\/?p=519"},"modified":"2026-02-27T03:12:20","modified_gmt":"2026-02-26T21:12:20","slug":"register_taxonomy","status":"publish","type":"post","link":"https:\/\/w4dev.com\/wp\/register_taxonomy\/","title":{"rendered":"register_taxonomy \u2013 WordPress Function to Create or Modify Taxonomy"},"content":{"rendered":"\n<p>In WordPress, <strong>taxonomy<\/strong> is a grouping method for any post types.<\/p>\n\n\n\n<p>WordPress have five built-in taxonomy <code>categories<\/code>, <code>post tags<\/code>, <code>nav_menu<\/code>, <code>post_format<\/code> and <code>link_category<\/code>. <code>categories<\/code>, <code>post tags<\/code> and <code>post_format<\/code> are used for <code>post_type<\/code> <strong>post<\/strong>, <code>nav_menu<\/code> is used for <code>post_type<\/code> <strong>nav_menu_item<\/strong>, and <code>link_category<\/code> is used for <code>post_type<\/code> <strong>link<\/strong>. When built-in taxonomy are not enough, custom taxonomies are created to group things some more way<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Source Reference:<\/h3>\n\n\n\n<p><code>register_taxonomy<\/code> function is located in <strong>wp-includes\/taxonomy.php<\/strong> file on line <strong>324<\/strong>. On the same file on line <strong>44<\/strong>, you can check how WordPress has used <code>register_taxonomy<\/code> for creating the initial taxonomies like <code>category<\/code>, <code>post_tag<\/code> etc.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Using register_taxonomy:<\/h3>\n\n\n\n<p>To create a custom taxonomy or modify, use function <code>register_taxonomy<\/code>. This function accepts three arguments.<\/p>\n\n\n\n<p>1. <strong>taxonomy name<\/strong> is an unique lowercase string, which is used later on to query terms under the taxonomy or assign a term for a post type. No number&#8217;s, no space &amp; no upper case letters.<\/p>\n\n\n\n<p>2. <strong>post object type<\/strong> is the post type name with whom the taxonomy will be used. The post type could be already registered or registered later.<\/p>\n\n\n\n<p>3. <strong>third argument<\/strong> is an array of information that set the display name, usage restriction and some other thing.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Important options for the Third argument of <code>register_taxonomy<\/code> function:<\/h3>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>hierarchical<\/strong><\/h5>\n\n\n\n<p>Taxonomy has terms, generally which is visible with a post or custom post type. Ex: when we create a category <code>English<\/code>, the <code>English<\/code> is called a term for category taxonomy. We may need to create sub terms Ex: a new sub-term term <strong>US English<\/strong> and <strong>UK English<\/strong> under term <strong>English<\/strong>. This is where we need <code>hierarchical<\/code> argument. if we need parent =&gt; sub terms relation, <code>hierarchical<\/code> need to be set <code>true<\/code>, else set it <code>false<\/code>.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>query_var<\/strong><\/h5>\n\n\n\n<p>If you have used WordPress <code>query_posts<\/code> or <code>get_posts<\/code> function, you should have seen how you can do query for posts by a category name or id. Example: <code>get_posts( array( \u2018category_name\u2019 =&gt; \u2018uncategorized\u2019) )<\/code>. Here <code>category_name<\/code> is the query variable. So query_variable is extremely used on query. Setting query_var to false will restrict to query posts by using <code>query_var<\/code>.<\/p>\n\n\n\n<p>If you register a custom taxonomy ex: <code>taxonomy name<\/code> is <code>books<\/code> an a <code>term<\/code> exists in this taxonomy <code>tutorial<\/code> and set the <code>query_var<\/code> argument to true, you can make a query for the posts belongs to the custom taxonomy (ex: \u201cbooks\u201d =&gt; \u201ctutorial\u201d). If <code>'query_var'<\/code> argument is set to <code>false<\/code>, you can\u2019t make this query as it won\u2019t get you any result.<\/p>\n\n\n\n<p>You only should set <code>'query_var'<\/code> to <code>'false'<\/code> if you want to use custom taxonomy with raw PHP MYSQL query, else set it to <code>true<\/code> for easy usage.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>rewrite<\/strong><\/h5>\n\n\n\n<p>Rewrite is the url formation you want to use for taxonomy terms. Example: A general category page url looks like \u2013 \u2018http:\/\/SITEURL\/category\/the_category_term\/\u2019. Here \u2018category\u2019 is the taxonomy. And the <code>the_category_term<\/code> is a term slug. Each taxonomy display it&#8217;s terms in the format &#8211; <code>http:\/\/SITEURL\/taxonomy\/term_slug\/<\/code>. To show a custom taxonomy terms with a different front rather than the taxonomy name, <code>rewrite<\/code> argument is used. setting this argument to false will use query variable on url like this: <code>http:\/\/SITEURL\/?taxonomy_name=the_term_name<\/code>, <code>rewrite<\/code> accept parameter in array. Ex: \u2018rewrite\u2019 =&gt; array(\u2018slug\u2019 =&gt; \u2018the_slug_you_need_to_show_before_the_term_name\u2019)<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Example<\/h3>\n\n\n\n<p>Create a new <code>taxonomy<\/code> <strong>tutorial<\/strong> for default <code>post_type<\/code> <strong>post<\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">add_action( 'init', 'register_custom_taxonomies', 0 );\nfunction register_custom_taxonomies() {\n    register_taxonomy( 'tutorial', 'post', array(\n\t\"hierarchical\" =&gt; true,\n\t\"label\" =&gt; \"Tutorial\",\n\t\"singular_label\" =&gt; \"Tutorial\",\n\t'query_var' =&gt; true,\n\t'rewrite' =&gt; array( \n            'slug' =&gt; 'tutorial', \n\t    'with_front' =&gt; false \n\t),\n\t'public' =&gt; true,\n\t'show_ui' =&gt; true,\n\t'show_tagcloud' =&gt; true,\n\t'_builtin' =&gt; false,\n\t'show_in_nav_menus' =&gt; false\n    ));\n}\n<\/code><\/pre>\n\n\n\n<p>See here, we have called the <code>'register_taxonomy'<\/code> function inside a new function <code>'register_custom_taxonomies'<\/code>. As register taxonomy function need to be called after <code>init<\/code> action is fired. So we create a function and hooked it on <code>init<\/code> action event.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>You can find the function reference at <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/register_taxonomy\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">WordPress Documentation<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In WordPress, taxonomy is a grouping method for any post types. WordPress have five built-in taxonomy categories, post tags, nav_menu, post_format and link_category. categories, post tags and post_format are used for post_type post, nav_menu is used for post_type nav_menu_item, and link_category is used for post_type link. When built-in taxonomy are not enough, custom taxonomies are [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":517,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"qubely_global_settings":"","qubely_interactions":"","_eb_attr":"","footnotes":""},"categories":[1],"tags":[65],"class_list":["post-519","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wp","tag-wp-function"],"qubely_featured_image_url":{"full":["https:\/\/w4dev.com\/wp-content\/uploads\/2011\/02\/wp-function.jpg",150,150,false],"landscape":["https:\/\/w4dev.com\/wp-content\/uploads\/2011\/02\/wp-function.jpg",150,150,false],"portraits":["https:\/\/w4dev.com\/wp-content\/uploads\/2011\/02\/wp-function.jpg",150,150,false],"thumbnail":["https:\/\/w4dev.com\/wp-content\/uploads\/2011\/02\/wp-function.jpg",150,150,false],"medium":["https:\/\/w4dev.com\/wp-content\/uploads\/2011\/02\/wp-function.jpg",150,150,false],"medium_large":["https:\/\/w4dev.com\/wp-content\/uploads\/2011\/02\/wp-function.jpg",150,150,false],"large":["https:\/\/w4dev.com\/wp-content\/uploads\/2011\/02\/wp-function.jpg",150,150,false],"1536x1536":["https:\/\/w4dev.com\/wp-content\/uploads\/2011\/02\/wp-function.jpg",150,150,false],"2048x2048":["https:\/\/w4dev.com\/wp-content\/uploads\/2011\/02\/wp-function.jpg",150,150,false],"qubely_landscape":["https:\/\/w4dev.com\/wp-content\/uploads\/2011\/02\/wp-function.jpg",150,150,false],"qubely_portrait":["https:\/\/w4dev.com\/wp-content\/uploads\/2011\/02\/wp-function.jpg",150,150,false],"qubely_thumbnail":["https:\/\/w4dev.com\/wp-content\/uploads\/2011\/02\/wp-function.jpg",100,100,false]},"qubely_author":{"display_name":"Shazzad Hossain Khan","author_link":"https:\/\/w4dev.com\/author\/shazzad\/"},"qubely_comment":0,"qubely_category":"<a href=\"https:\/\/w4dev.com\/category\/wp\/\" rel=\"category tag\">WordPress<\/a>","qubely_excerpt":"In WordPress, taxonomy is a grouping method for any post types. WordPress have five built-in taxonomy categories, post tags, nav_menu, post_format and link_category. categories, post tags and post_format are used for post_type post, nav_menu is used for post_type nav_menu_item, and link_category is used for post_type link. When built-in taxonomy are not enough, custom taxonomies are&hellip;","yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>register_taxonomy \u2013 WordPress Function to Create or Modify Taxonomy - W4dev<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/w4dev.com\/wp\/register_taxonomy\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"register_taxonomy \u2013 WordPress Function to Create or Modify Taxonomy - W4dev\" \/>\n<meta property=\"og:description\" content=\"In WordPress, taxonomy is a grouping method for any post types. WordPress have five built-in taxonomy categories, post tags, nav_menu, post_format and link_category. categories, post tags and post_format are used for post_type post, nav_menu is used for post_type nav_menu_item, and link_category is used for post_type link. When built-in taxonomy are not enough, custom taxonomies are [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/w4dev.com\/wp\/register_taxonomy\/\" \/>\n<meta property=\"og:site_name\" content=\"W4dev\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/w4dev\" \/>\n<meta property=\"article:author\" content=\"http:\/\/www.facebook.com\/shazzad.wp\" \/>\n<meta property=\"article:published_time\" content=\"2011-02-11T19:45:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-26T21:12:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/w4dev.com\/wp-content\/uploads\/2011\/02\/wp-function.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Shazzad Hossain Khan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/shazzadwp\" \/>\n<meta name=\"twitter:site\" content=\"@w4dev\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Shazzad Hossain Khan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/w4dev.com\\\/wp\\\/register_taxonomy\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/w4dev.com\\\/wp\\\/register_taxonomy\\\/\"},\"author\":{\"name\":\"Shazzad Hossain Khan\",\"@id\":\"https:\\\/\\\/w4dev.com\\\/#\\\/schema\\\/person\\\/6cffe5a17e4e7c920071c2d8e275bec7\"},\"headline\":\"register_taxonomy \u2013 WordPress Function to Create or Modify Taxonomy\",\"datePublished\":\"2011-02-11T19:45:37+00:00\",\"dateModified\":\"2026-02-26T21:12:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/w4dev.com\\\/wp\\\/register_taxonomy\\\/\"},\"wordCount\":546,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/w4dev.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/w4dev.com\\\/wp\\\/register_taxonomy\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/w4dev.com\\\/wp-content\\\/uploads\\\/2011\\\/02\\\/wp-function.jpg\",\"keywords\":[\"WordPress Functions\"],\"articleSection\":[\"WordPress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/w4dev.com\\\/wp\\\/register_taxonomy\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/w4dev.com\\\/wp\\\/register_taxonomy\\\/\",\"url\":\"https:\\\/\\\/w4dev.com\\\/wp\\\/register_taxonomy\\\/\",\"name\":\"register_taxonomy \u2013 WordPress Function to Create or Modify Taxonomy - W4dev\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/w4dev.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/w4dev.com\\\/wp\\\/register_taxonomy\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/w4dev.com\\\/wp\\\/register_taxonomy\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/w4dev.com\\\/wp-content\\\/uploads\\\/2011\\\/02\\\/wp-function.jpg\",\"datePublished\":\"2011-02-11T19:45:37+00:00\",\"dateModified\":\"2026-02-26T21:12:20+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/w4dev.com\\\/wp\\\/register_taxonomy\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/w4dev.com\\\/wp\\\/register_taxonomy\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/w4dev.com\\\/wp\\\/register_taxonomy\\\/#primaryimage\",\"url\":\"https:\\\/\\\/w4dev.com\\\/wp-content\\\/uploads\\\/2011\\\/02\\\/wp-function.jpg\",\"contentUrl\":\"https:\\\/\\\/w4dev.com\\\/wp-content\\\/uploads\\\/2011\\\/02\\\/wp-function.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/w4dev.com\\\/wp\\\/register_taxonomy\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/w4dev.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"register_taxonomy \u2013 WordPress Function to Create or Modify Taxonomy\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/w4dev.com\\\/#website\",\"url\":\"https:\\\/\\\/w4dev.com\\\/\",\"name\":\"W4dev\",\"description\":\"Best WordPress Plugins\",\"publisher\":{\"@id\":\"https:\\\/\\\/w4dev.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/w4dev.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/w4dev.com\\\/#organization\",\"name\":\"W4dev\",\"url\":\"https:\\\/\\\/w4dev.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/w4dev.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/w4dev.com\\\/wp-content\\\/uploads\\\/2026\\\/02\\\/w4dev-logo-2025.png\",\"contentUrl\":\"https:\\\/\\\/w4dev.com\\\/wp-content\\\/uploads\\\/2026\\\/02\\\/w4dev-logo-2025.png\",\"width\":1022,\"height\":328,\"caption\":\"W4dev\"},\"image\":{\"@id\":\"https:\\\/\\\/w4dev.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/w4dev\",\"https:\\\/\\\/x.com\\\/w4dev\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/w4dev.com\\\/#\\\/schema\\\/person\\\/6cffe5a17e4e7c920071c2d8e275bec7\",\"name\":\"Shazzad Hossain Khan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6b16b41301e0e27abe50b08f308894664ce3a79e5906c9c8e80b5e2558854218?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6b16b41301e0e27abe50b08f308894664ce3a79e5906c9c8e80b5e2558854218?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6b16b41301e0e27abe50b08f308894664ce3a79e5906c9c8e80b5e2558854218?s=96&d=mm&r=g\",\"caption\":\"Shazzad Hossain Khan\"},\"sameAs\":[\"https:\\\/\\\/shazzad.me\",\"http:\\\/\\\/www.facebook.com\\\/shazzad.wp\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/shazzadwp\"],\"url\":\"https:\\\/\\\/w4dev.com\\\/author\\\/shazzad\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"register_taxonomy \u2013 WordPress Function to Create or Modify Taxonomy - W4dev","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/w4dev.com\/wp\/register_taxonomy\/","og_locale":"en_US","og_type":"article","og_title":"register_taxonomy \u2013 WordPress Function to Create or Modify Taxonomy - W4dev","og_description":"In WordPress, taxonomy is a grouping method for any post types. WordPress have five built-in taxonomy categories, post tags, nav_menu, post_format and link_category. categories, post tags and post_format are used for post_type post, nav_menu is used for post_type nav_menu_item, and link_category is used for post_type link. When built-in taxonomy are not enough, custom taxonomies are [&hellip;]","og_url":"https:\/\/w4dev.com\/wp\/register_taxonomy\/","og_site_name":"W4dev","article_publisher":"https:\/\/www.facebook.com\/w4dev","article_author":"http:\/\/www.facebook.com\/shazzad.wp","article_published_time":"2011-02-11T19:45:37+00:00","article_modified_time":"2026-02-26T21:12:20+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/w4dev.com\/wp-content\/uploads\/2011\/02\/wp-function.jpg","type":"image\/jpeg"}],"author":"Shazzad Hossain Khan","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/shazzadwp","twitter_site":"@w4dev","twitter_misc":{"Written by":"Shazzad Hossain Khan","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/w4dev.com\/wp\/register_taxonomy\/#article","isPartOf":{"@id":"https:\/\/w4dev.com\/wp\/register_taxonomy\/"},"author":{"name":"Shazzad Hossain Khan","@id":"https:\/\/w4dev.com\/#\/schema\/person\/6cffe5a17e4e7c920071c2d8e275bec7"},"headline":"register_taxonomy \u2013 WordPress Function to Create or Modify Taxonomy","datePublished":"2011-02-11T19:45:37+00:00","dateModified":"2026-02-26T21:12:20+00:00","mainEntityOfPage":{"@id":"https:\/\/w4dev.com\/wp\/register_taxonomy\/"},"wordCount":546,"commentCount":0,"publisher":{"@id":"https:\/\/w4dev.com\/#organization"},"image":{"@id":"https:\/\/w4dev.com\/wp\/register_taxonomy\/#primaryimage"},"thumbnailUrl":"https:\/\/w4dev.com\/wp-content\/uploads\/2011\/02\/wp-function.jpg","keywords":["WordPress Functions"],"articleSection":["WordPress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/w4dev.com\/wp\/register_taxonomy\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/w4dev.com\/wp\/register_taxonomy\/","url":"https:\/\/w4dev.com\/wp\/register_taxonomy\/","name":"register_taxonomy \u2013 WordPress Function to Create or Modify Taxonomy - W4dev","isPartOf":{"@id":"https:\/\/w4dev.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/w4dev.com\/wp\/register_taxonomy\/#primaryimage"},"image":{"@id":"https:\/\/w4dev.com\/wp\/register_taxonomy\/#primaryimage"},"thumbnailUrl":"https:\/\/w4dev.com\/wp-content\/uploads\/2011\/02\/wp-function.jpg","datePublished":"2011-02-11T19:45:37+00:00","dateModified":"2026-02-26T21:12:20+00:00","breadcrumb":{"@id":"https:\/\/w4dev.com\/wp\/register_taxonomy\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/w4dev.com\/wp\/register_taxonomy\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/w4dev.com\/wp\/register_taxonomy\/#primaryimage","url":"https:\/\/w4dev.com\/wp-content\/uploads\/2011\/02\/wp-function.jpg","contentUrl":"https:\/\/w4dev.com\/wp-content\/uploads\/2011\/02\/wp-function.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/w4dev.com\/wp\/register_taxonomy\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/w4dev.com\/"},{"@type":"ListItem","position":2,"name":"register_taxonomy \u2013 WordPress Function to Create or Modify Taxonomy"}]},{"@type":"WebSite","@id":"https:\/\/w4dev.com\/#website","url":"https:\/\/w4dev.com\/","name":"W4dev","description":"Best WordPress Plugins","publisher":{"@id":"https:\/\/w4dev.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/w4dev.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/w4dev.com\/#organization","name":"W4dev","url":"https:\/\/w4dev.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/w4dev.com\/#\/schema\/logo\/image\/","url":"https:\/\/w4dev.com\/wp-content\/uploads\/2026\/02\/w4dev-logo-2025.png","contentUrl":"https:\/\/w4dev.com\/wp-content\/uploads\/2026\/02\/w4dev-logo-2025.png","width":1022,"height":328,"caption":"W4dev"},"image":{"@id":"https:\/\/w4dev.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/w4dev","https:\/\/x.com\/w4dev"]},{"@type":"Person","@id":"https:\/\/w4dev.com\/#\/schema\/person\/6cffe5a17e4e7c920071c2d8e275bec7","name":"Shazzad Hossain Khan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/6b16b41301e0e27abe50b08f308894664ce3a79e5906c9c8e80b5e2558854218?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/6b16b41301e0e27abe50b08f308894664ce3a79e5906c9c8e80b5e2558854218?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6b16b41301e0e27abe50b08f308894664ce3a79e5906c9c8e80b5e2558854218?s=96&d=mm&r=g","caption":"Shazzad Hossain Khan"},"sameAs":["https:\/\/shazzad.me","http:\/\/www.facebook.com\/shazzad.wp","https:\/\/x.com\/https:\/\/twitter.com\/shazzadwp"],"url":"https:\/\/w4dev.com\/author\/shazzad\/"}]}},"_links":{"self":[{"href":"https:\/\/w4dev.com\/wp-json\/wp\/v2\/posts\/519","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/w4dev.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/w4dev.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/w4dev.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/w4dev.com\/wp-json\/wp\/v2\/comments?post=519"}],"version-history":[{"count":2,"href":"https:\/\/w4dev.com\/wp-json\/wp\/v2\/posts\/519\/revisions"}],"predecessor-version":[{"id":8789,"href":"https:\/\/w4dev.com\/wp-json\/wp\/v2\/posts\/519\/revisions\/8789"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/w4dev.com\/wp-json\/wp\/v2\/media\/517"}],"wp:attachment":[{"href":"https:\/\/w4dev.com\/wp-json\/wp\/v2\/media?parent=519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/w4dev.com\/wp-json\/wp\/v2\/categories?post=519"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/w4dev.com\/wp-json\/wp\/v2\/tags?post=519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}