{"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>\nP\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