{"id":1221,"date":"2013-10-17T10:30:55","date_gmt":"2013-10-17T10:30:55","guid":{"rendered":"http:\/\/musilda.cz\/?p=1221"},"modified":"2013-10-17T10:30:55","modified_gmt":"2013-10-17T10:30:55","slug":"jak-zmenit-zadejte-nazev-pro-custom-post-types","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/jak-zmenit-zadejte-nazev-pro-custom-post-types\/","title":{"rendered":"Jak zm\u011bnit Zadejte n\u00e1zev pro custom post types"},"content":{"rendered":"\n

V pol\u00ed\u010dku pro vytvo\u0159en\u00ed titulku p\u0159\u00edsp\u011bvku je defaultn\u011b zobrazeno „Zadejte n\u00e1zev“. Pokud si vytvo\u0159\u00edte vlastn\u00ed typ obsahu, nemus\u00ed v\u00e1m takov\u00fd text vyhovovat. Uk\u00e1\u017ei v\u00e1m, jak jej zm\u011bnit.<\/p>\n\n\n\n\n\n\n\n

Do functions.php vlo\u017e\u00edme tuto jednoduchou funkci:<\/p>\n\n\n\n

function change_default_title( $title ){\n     $screen = get_current_screen();\n     if  ( 'POST_TYPE' == $screen->post_type ) {\n          $title = 'Enter Invoice Title';\n     }\n     return $title;\n}\nadd_filter( 'enter_title_here', 'change_default_title' );\n<\/pre>\n\n\n\n

M\u00edsto POST_TYPE vlo\u017ete n\u00e1zev va\u0161eho vytvo\u0159en\u00e9ho obsahu.<\/p>\n","protected":false},"excerpt":{"rendered":"

V pol\u00ed\u010dku pro vytvo\u0159en\u00ed titulku p\u0159\u00edsp\u011bvku je defaultn\u011b zobrazeno „Zadejte n\u00e1zev“. Pokud si vytvo\u0159\u00edte vlastn\u00ed typ obsahu, nemus\u00ed v\u00e1m takov\u00fd text vyhovovat. Uk\u00e1\u017ei v\u00e1m, jak jej zm\u011bnit.<\/p>\n","protected":false},"author":1,"featured_media":8624,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-1221","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-snippety"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/1221"}],"collection":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/comments?post=1221"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/1221\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media\/8624"}],"wp:attachment":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media?parent=1221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=1221"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=1221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}