{"id":9819,"date":"2013-05-03T14:06:58","date_gmt":"2013-05-03T14:06:58","guid":{"rendered":"http:\/\/musilda.cz\/?p=314"},"modified":"2013-05-03T14:06:58","modified_gmt":"2013-05-03T14:06:58","slug":"funkce-wp_head","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/funkce-wp_head\/","title":{"rendered":"Funkce wp_head"},"content":{"rendered":"

Tato funkce je jedna z nejd\u016fle\u017eit\u011bj\u0161\u00edch v \u0161ablon\u011b webu, spole\u010dn\u011b s wp_footer().<\/p>\n

Wp_head() vol\u00e1\/spou\u0161t\u00ed wp_head hook, kter\u00fd pou\u017e\u00edvaj\u00ed r\u016fzn\u00e9 funkce a pluginy. Proto pokud v \u0161ablon\u011b tuto funkci vynech\u00e1te, mohou v\u00e1m p\u0159estat fungovat pluginy.<\/p>\n

Funkce samotn\u00e1 nem\u00e1 \u017e\u00e1dn\u00e9 parametry a proto pro jej\u00ed pou\u017eit\u00ed ji sta\u010d\u00ed um\u00edstit mezi tagy head v header.php<\/p>\n

\n\n    \n\n<\/pre>\n

P\u0159esto\u017ee to p\u0159\u00edmo s funkc\u00ed neouvis\u00ed a je to sou\u010d\u00e1st\u00ed Plugin API, funkci um\u00edst\u00edme do tohoto hooku pomoc\u00ed add_action:<\/p>\n

\n\n<\/pre>\n

Odkaz na WordPress Codex<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

Tato funkce je jedna z nejd\u016fle\u017eit\u011bj\u0161\u00edch v \u0161ablon\u011b webu, spole\u010dn\u011b s wp_footer(). Wp_head() vol\u00e1\/spou\u0161t\u00ed wp_head hook, kter\u00fd pou\u017e\u00edvaj\u00ed r\u016fzn\u00e9 funkce a pluginy. Proto pokud v \u0161ablon\u011b tuto funkci vynech\u00e1te, mohou v\u00e1m p\u0159estat fungovat pluginy. Funkce samotn\u00e1 nem\u00e1 \u017e\u00e1dn\u00e9 parametry a proto pro jej\u00ed pou\u017eit\u00ed ji sta\u010d\u00ed um\u00edstit mezi tagy head v header.php P\u0159esto\u017ee to p\u0159\u00edmo<\/p>\n","protected":false},"author":1,"featured_media":8523,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[540],"class_list":["post-9819","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-codex","tag-wp_head"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/9819"}],"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=9819"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/9819\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media\/8523"}],"wp:attachment":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media?parent=9819"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=9819"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=9819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}