{"id":1587,"date":"2014-03-03T18:55:50","date_gmt":"2014-03-03T18:55:50","guid":{"rendered":"http:\/\/musilda.cz\/?p=1587"},"modified":"2014-03-03T18:55:50","modified_gmt":"2014-03-03T18:55:50","slug":"funkce-get_edit_post_link","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/funkce-get_edit_post_link\/","title":{"rendered":"Funkce get_edit_post_link"},"content":{"rendered":"
Funkce get_edit_post_link() v\u00e1m umo\u017en\u00ed z\u00edskat url pro editaci \u010dl\u00e1nku, pokud m\u00e1 aktivn\u00ed u\u017eivatel opr\u00e1vn\u011bn\u00ed pro \u00fapravu \u010dl\u00e1nk\u016f. \u00a0\u010casto se s odkazem na editaci \u010dl\u00e1nku m\u016f\u017eete setkat u post meta vypsan\u00fdch pro titulkem \u010dl\u00e1nku.<\/p>\n
Pou\u017eit\u00ed:<\/strong><\/p>\n $id – id \u010dl\u00e1nku<\/p>\n $context – jak bude zaps\u00e1n ampersand. Defaultn\u011b nen\u00ed parametr uveden a bude se tak vypisovat jako &, uveden\u00ed jak\u00e9hokoliv \u0159et\u011bzce, i pr\u00e1zdn\u00e9ho zap\u0159\u00ed\u010din\u00ed vyps\u00e1n\u00ed ampersandu jako &<\/p>\n Funkci m\u016f\u017eete pou\u017e\u00edt jak v Loopu, tak i mimo n\u011bj.<\/p>\n","protected":false},"excerpt":{"rendered":" Funkce get_edit_post_link() v\u00e1m umo\u017en\u00ed z\u00edskat url pro editaci \u010dl\u00e1nku, pokud m\u00e1 aktivn\u00ed u\u017eivatel opr\u00e1vn\u011bn\u00ed pro \u00fapravu \u010dl\u00e1nk\u016f. \u00a0\u010casto se s odkazem na editaci \u010dl\u00e1nku m\u016f\u017eete setkat u post meta vypsan\u00fdch pro titulkem \u010dl\u00e1nku.<\/p>\n","protected":false},"author":1,"featured_media":8523,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,15],"tags":[],"class_list":["post-1587","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-codex","category-post-funkce"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/1587"}],"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=1587"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/1587\/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=1587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=1587"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=1587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}echo get_edit_post_link( $id, $context );<\/pre>\n