{"id":6618,"date":"2022-02-03T08:46:40","date_gmt":"2022-02-03T08:46:40","guid":{"rendered":"https:\/\/musilda.cz\/?p=6618"},"modified":"2022-02-03T08:46:40","modified_gmt":"2022-02-03T08:46:40","slug":"poradi-hooku-pri-nacteni-wordpress-stranky","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/poradi-hooku-pri-nacteni-wordpress-stranky\/","title":{"rendered":"Po\u0159ad\u00ed hook\u016f p\u0159i na\u010dten\u00ed WordPress str\u00e1nky"},"content":{"rendered":"\n

Zn\u00e1te to. Pot\u0159ebujete n\u011bco upravit a na Stack Overflow jste sice na\u0161li funkci, nebo popis \u0159e\u0161en\u00ed, ale kam ji sakra d\u00e1t? <\/p>\n\n\n\n

Dej to do functions.php – zn\u00ed nejb\u011b\u017en\u011bj\u0161\u00ed rada. Tak tam tu funkci d\u00e1te a nic se nestane. Jak to?<\/p>\n\n\n\n

Je to proto, \u017ee soubor functions.php se na\u010d\u00edt\u00e1 hned po na\u010dten\u00ed plugin\u016f a m\u016f\u017ee se st\u00e1t, \u017ee to co chcete upravovat se definuje pozd\u011bji.<\/p>\n\n\n\n

Hooky p\u0159ed a po functions.php<\/h2>\n\n\n\n