{"id":309,"date":"2024-02-01T10:46:19","date_gmt":"2024-02-01T10:46:19","guid":{"rendered":"http:\/\/localhost\/syllogic\/wp\/?p=309"},"modified":"2024-02-02T12:22:27","modified_gmt":"2024-02-02T12:22:27","slug":"modify-a-custom-post-type-registration-with-the-registered_post_type-hook","status":"publish","type":"post","link":"http:\/\/localhost:10008\/modify-a-custom-post-type-registration-with-the-registered_post_type-hook\/","title":{"rendered":"Modify a Custom Post Type Registration with the registered_post_type Hook"},"content":{"rendered":"\n
add_action( 'registered_post_type', 'gs_books_label_rename', 10, 2 );\n\n\/**\n* Modify registered post type menu label\n*\n* @param string $post_type Registered post type name.\n* @param array $args Array of post type parameters.\n*\/\n\nfunction gs_books_label_rename( $post_type, $args {\n  if ( 'gs_books' === $post_type ) {\n    global $wp_post_types;\n    $args->labels->menu_name = __( 'Books', 'gs_books' );\n    $wp_post_types[ $post_type ] = $args;    \n  }\n}<\/code><\/pre>\n\n\n\n

via Use registered_post_type Hook to Modify Post Type Registration – WP Smith<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"

via Use registered_post_type Hook to Modify Post Type Registration – WP Smith.<\/p>\n","protected":false},"author":2,"featured_media":319,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"yoast_head":"\nModify a Custom Post Type Registration with the registered_post_type Hook - Tiffin Consulting<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/localhost:10008\/modify-a-custom-post-type-registration-with-the-registered_post_type-hook\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Modify a Custom Post Type Registration with the registered_post_type Hook - Tiffin Consulting\" \/>\n<meta property=\"og:description\" content=\"via Use registered_post_type Hook to Modify Post Type Registration – WP Smith.\" \/>\n<meta property=\"og:url\" content=\"http:\/\/localhost:10008\/modify-a-custom-post-type-registration-with-the-registered_post_type-hook\/\" \/>\n<meta property=\"og:site_name\" content=\"Tiffin Consulting\" \/>\n<meta property=\"article:published_time\" content=\"2024-02-01T10:46:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-02T12:22:27+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/localhost:10008\/wp-content\/uploads\/2015\/07\/Wordpress-Code-is-Poetry.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1038\" \/>\n\t<meta property=\"og:image:height\" content=\"1038\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Aurovrata V.\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Aurovrata V.\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\n\t \"@context\": \"https:\/\/schema.org\",\n\t \"@graph\": [\n\t {\n\t \"@type\": \"Article\",\n\t \"@id\": \"http:\/\/localhost:10008\/modify-a-custom-post-type-registration-with-the-registered_post_type-hook\/#article\",\n\t \"isPartOf\": {\n\t \"@id\": \"http:\/\/localhost:10008\/modify-a-custom-post-type-registration-with-the-registered_post_type-hook\/\"\n\t },\n\t \"author\": {\n\t \"name\": \"Aurovrata V.\",\n\t \"@id\": \"http:\/\/localhost:10008\/#\/schema\/person\/361f7db128e2b6858c7deb2a43f85f99\"\n\t },\n\t \"headline\": \"Modify a Custom Post Type Registration with the registered_post_type Hook\",\n\t \"datePublished\": \"2024-02-01T10:46:19+00:00\",\n\t \"dateModified\": \"2024-02-02T12:22:27+00:00\",\n\t \"mainEntityOfPage\": {\n\t \"@id\": \"http:\/\/localhost:10008\/modify-a-custom-post-type-registration-with-the-registered_post_type-hook\/\"\n\t },\n\t \"wordCount\": 26,\n\t \"publisher\": {\n\t \"@id\": \"http:\/\/localhost:10008\/#\/schema\/person\/e7549052d5ca8cb5891c059c2424a9f6\"\n\t },\n\t \"articleSection\": [\n\t \"Admin Dashboard\"\n\t ],\n\t \"inLanguage\": \"en-US\"\n\t },\n\t {\n\t \"@type\": \"WebPage\",\n\t \"@id\": \"http:\/\/localhost:10008\/modify-a-custom-post-type-registration-with-the-registered_post_type-hook\/\",\n\t \"url\": \"http:\/\/localhost:10008\/modify-a-custom-post-type-registration-with-the-registered_post_type-hook\/\",\n\t \"name\": \"Modify a Custom Post Type Registration with the registered_post_type Hook - Tiffin Consulting\",\n\t \"isPartOf\": {\n\t \"@id\": \"http:\/\/localhost:10008\/#website\"\n\t },\n\t \"datePublished\": \"2024-02-01T10:46:19+00:00\",\n\t \"dateModified\": \"2024-02-02T12:22:27+00:00\",\n\t \"breadcrumb\": {\n\t \"@id\": \"http:\/\/localhost:10008\/modify-a-custom-post-type-registration-with-the-registered_post_type-hook\/#breadcrumb\"\n\t },\n\t \"inLanguage\": \"en-US\",\n\t \"potentialAction\": [\n\t {\n\t \"@type\": \"ReadAction\",\n\t \"target\": [\n\t \"http:\/\/localhost:10008\/modify-a-custom-post-type-registration-with-the-registered_post_type-hook\/\"\n\t ]\n\t }\n\t ]\n\t },\n\t {\n\t \"@type\": \"BreadcrumbList\",\n\t \"@id\": \"http:\/\/localhost:10008\/modify-a-custom-post-type-registration-with-the-registered_post_type-hook\/#breadcrumb\",\n\t \"itemListElement\": [\n\t {\n\t \"@type\": \"ListItem\",\n\t \"position\": 1,\n\t \"name\": \"Home\",\n\t \"item\": \"http:\/\/localhost:10008\/\"\n\t },\n\t {\n\t \"@type\": \"ListItem\",\n\t \"position\": 2,\n\t \"name\": \"Modify a Custom Post Type Registration with the registered_post_type Hook\"\n\t }\n\t ]\n\t },\n\t {\n\t \"@type\": \"WebSite\",\n\t \"@id\": \"http:\/\/localhost:10008\/#website\",\n\t \"url\": \"http:\/\/localhost:10008\/\",\n\t \"name\": \"Tiffin Consulting\",\n\t \"description\": \"digital business transformation\",\n\t \"publisher\": {\n\t \"@id\": \"http:\/\/localhost:10008\/#\/schema\/person\/e7549052d5ca8cb5891c059c2424a9f6\"\n\t },\n\t \"potentialAction\": [\n\t {\n\t \"@type\": \"SearchAction\",\n\t \"target\": {\n\t \"@type\": \"EntryPoint\",\n\t \"urlTemplate\": \"http:\/\/localhost:10008\/?s={search_term_string}\"\n\t },\n\t \"query-input\": \"required name=search_term_string\"\n\t }\n\t ],\n\t \"inLanguage\": \"en-US\"\n\t },\n\t {\n\t \"@type\": [\n\t \"Person\",\n\t \"Organization\"\n\t ],\n\t \"@id\": \"http:\/\/localhost:10008\/#\/schema\/person\/e7549052d5ca8cb5891c059c2424a9f6\",\n\t \"name\": \"Aurovrata V.\",\n\t \"image\": {\n\t \"@type\": \"ImageObject\",\n\t \"inLanguage\": \"en-US\",\n\t \"@id\": \"http:\/\/localhost:10008\/#\/schema\/person\/image\/\",\n\t \"url\": \"http:\/\/localhost:10008\/wp-content\/uploads\/2024\/02\/tiffin-dabbawalla.png\",\n\t \"contentUrl\": \"http:\/\/localhost:10008\/wp-content\/uploads\/2024\/02\/tiffin-dabbawalla.png\",\n\t \"width\": 1060,\n\t \"height\": 644,\n\t \"caption\": \"Aurovrata V.\"\n\t },\n\t \"logo\": {\n\t \"@id\": \"http:\/\/localhost:10008\/#\/schema\/person\/image\/\"\n\t },\n\t \"sameAs\": [\n\t \"http:\/\/localhost:10008\"\n\t ]\n\t },\n\t {\n\t \"@type\": \"Person\",\n\t \"@id\": \"http:\/\/localhost:10008\/#\/schema\/person\/361f7db128e2b6858c7deb2a43f85f99\",\n\t \"name\": \"Aurovrata V.\",\n\t \"image\": {\n\t \"@type\": \"ImageObject\",\n\t \"inLanguage\": \"en-US\",\n\t \"@id\": \"http:\/\/localhost:10008\/#\/schema\/person\/image\/\",\n\t \"url\": \"http:\/\/0.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\n\t \"contentUrl\": \"http:\/\/0.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\n\t \"caption\": \"Aurovrata V.\"\n\t },\n\t \"url\": \"http:\/\/localhost:10008\/author\/aurovrata\/\"\n\t }\n\t ]\n\t}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Modify a Custom Post Type Registration with the registered_post_type Hook - Tiffin Consulting","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":"http:\/\/localhost:10008\/modify-a-custom-post-type-registration-with-the-registered_post_type-hook\/","og_locale":"en_US","og_type":"article","og_title":"Modify a Custom Post Type Registration with the registered_post_type Hook - Tiffin Consulting","og_description":"via Use registered_post_type Hook to Modify Post Type Registration – WP Smith.","og_url":"http:\/\/localhost:10008\/modify-a-custom-post-type-registration-with-the-registered_post_type-hook\/","og_site_name":"Tiffin Consulting","article_published_time":"2024-02-01T10:46:19+00:00","article_modified_time":"2024-02-02T12:22:27+00:00","og_image":[{"width":1038,"height":1038,"url":"http:\/\/localhost:10008\/wp-content\/uploads\/2015\/07\/Wordpress-Code-is-Poetry.png","type":"image\/png"}],"author":"Aurovrata V.","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Aurovrata V."},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/localhost:10008\/modify-a-custom-post-type-registration-with-the-registered_post_type-hook\/#article","isPartOf":{"@id":"http:\/\/localhost:10008\/modify-a-custom-post-type-registration-with-the-registered_post_type-hook\/"},"author":{"name":"Aurovrata V.","@id":"http:\/\/localhost:10008\/#\/schema\/person\/361f7db128e2b6858c7deb2a43f85f99"},"headline":"Modify a Custom Post Type Registration with the registered_post_type Hook","datePublished":"2024-02-01T10:46:19+00:00","dateModified":"2024-02-02T12:22:27+00:00","mainEntityOfPage":{"@id":"http:\/\/localhost:10008\/modify-a-custom-post-type-registration-with-the-registered_post_type-hook\/"},"wordCount":26,"publisher":{"@id":"http:\/\/localhost:10008\/#\/schema\/person\/e7549052d5ca8cb5891c059c2424a9f6"},"articleSection":["Admin Dashboard"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"http:\/\/localhost:10008\/modify-a-custom-post-type-registration-with-the-registered_post_type-hook\/","url":"http:\/\/localhost:10008\/modify-a-custom-post-type-registration-with-the-registered_post_type-hook\/","name":"Modify a Custom Post Type Registration with the registered_post_type Hook - Tiffin Consulting","isPartOf":{"@id":"http:\/\/localhost:10008\/#website"},"datePublished":"2024-02-01T10:46:19+00:00","dateModified":"2024-02-02T12:22:27+00:00","breadcrumb":{"@id":"http:\/\/localhost:10008\/modify-a-custom-post-type-registration-with-the-registered_post_type-hook\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/localhost:10008\/modify-a-custom-post-type-registration-with-the-registered_post_type-hook\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/localhost:10008\/modify-a-custom-post-type-registration-with-the-registered_post_type-hook\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/localhost:10008\/"},{"@type":"ListItem","position":2,"name":"Modify a Custom Post Type Registration with the registered_post_type Hook"}]},{"@type":"WebSite","@id":"http:\/\/localhost:10008\/#website","url":"http:\/\/localhost:10008\/","name":"Tiffin Consulting","description":"digital business transformation","publisher":{"@id":"http:\/\/localhost:10008\/#\/schema\/person\/e7549052d5ca8cb5891c059c2424a9f6"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/localhost:10008\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"http:\/\/localhost:10008\/#\/schema\/person\/e7549052d5ca8cb5891c059c2424a9f6","name":"Aurovrata V.","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/localhost:10008\/#\/schema\/person\/image\/","url":"http:\/\/localhost:10008\/wp-content\/uploads\/2024\/02\/tiffin-dabbawalla.png","contentUrl":"http:\/\/localhost:10008\/wp-content\/uploads\/2024\/02\/tiffin-dabbawalla.png","width":1060,"height":644,"caption":"Aurovrata V."},"logo":{"@id":"http:\/\/localhost:10008\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/localhost:10008"]},{"@type":"Person","@id":"http:\/\/localhost:10008\/#\/schema\/person\/361f7db128e2b6858c7deb2a43f85f99","name":"Aurovrata V.","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/localhost:10008\/#\/schema\/person\/image\/","url":"http:\/\/0.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"http:\/\/0.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"Aurovrata V."},"url":"http:\/\/localhost:10008\/author\/aurovrata\/"}]}},"_links":{"self":[{"href":"http:\/\/localhost:10008\/wp-json\/wp\/v2\/posts\/309"}],"collection":[{"href":"http:\/\/localhost:10008\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/localhost:10008\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/localhost:10008\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/localhost:10008\/wp-json\/wp\/v2\/comments?post=309"}],"version-history":[{"count":2,"href":"http:\/\/localhost:10008\/wp-json\/wp\/v2\/posts\/309\/revisions"}],"predecessor-version":[{"id":324,"href":"http:\/\/localhost:10008\/wp-json\/wp\/v2\/posts\/309\/revisions\/324"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/localhost:10008\/wp-json\/wp\/v2\/media\/319"}],"wp:attachment":[{"href":"http:\/\/localhost:10008\/wp-json\/wp\/v2\/media?parent=309"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/localhost:10008\/wp-json\/wp\/v2\/categories?post=309"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/localhost:10008\/wp-json\/wp\/v2\/tags?post=309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}