{"id":658,"date":"2013-06-19T20:14:55","date_gmt":"2013-06-19T20:14:55","guid":{"rendered":"http:\/\/musilda.cz\/?p=658"},"modified":"2013-06-19T20:14:55","modified_gmt":"2013-06-19T20:14:55","slug":"funkce-wp_logout_url","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/funkce-wp_logout_url\/","title":{"rendered":"Funkce wp_logout_url"},"content":{"rendered":"
Funkce wp_logout_url() provede odhl\u00e1\u0161en\u00ed u\u017eivatele a p\u0159esm\u011bruje jej na zadanou url. Pokud vytv\u00e1\u0159\u00edte n\u011bjak\u00fd widget, kde umo\u017en\u00edte u\u017eivatel\u016fm p\u0159ihl\u00e1\u0161en\u00ed, je dobr\u00e9, nab\u00eddnout jim pot\u00e9 i mo\u017enost odhl\u00e1\u0161en\u00ed. K tomu slou\u017e\u00ed tato funkce.<\/p>\n
Pou\u017eit\u00ed:<\/p>\n
\necho wp_logout_url( $redirect );\n<\/pre>\nFunkce m\u00e1 jedin\u00fd parametr $redirect, kter\u00fd je nepovinn\u00fd a defaultn\u011b je ‚none‘. Pomoc\u00ed tohoto parametru ur\u010d\u00edte adresu, kam bude u\u017eivatel po odhl\u00e1\u0161en\u00ed p\u0159esm\u011brov\u00e1n.<\/p>\n
Z\u00e1kladn\u00ed pou\u017eit\u00ed:<\/p>\n
\n<a href="\" title=\"Logout\">Logout<\/a>\n<\/pre>\nOdhl\u00e1\u0161en\u00ed a p\u0159esm\u011brov\u00e1n\u00ed na st\u00e1vaj\u00edc\u00ed str\u00e1nku:<\/p>\n
\n<a href="\" title=\"Logout\">Logout<\/a>\n<\/pre>\nOdhl\u00e1\u0161en\u00ed a p\u0159ihl\u00e1\u0161en\u00ed na hlavn\u00ed str\u00e1nku:<\/p>\n
\n<a href="\" title=\"Logout\">Logout<\/a>\n<\/pre>\n","protected":false},"excerpt":{"rendered":"Funkce wp_logout_url() provede odhl\u00e1\u0161en\u00ed u\u017eivatele a p\u0159esm\u011bruje jej na zadanou url. Pokud vytv\u00e1\u0159\u00edte n\u011bjak\u00fd widget, kde umo\u017en\u00edte u\u017eivatel\u016fm p\u0159ihl\u00e1\u0161en\u00ed, je dobr\u00e9, nab\u00eddnout jim pot\u00e9 i mo\u017enost odhl\u00e1\u0161en\u00ed. K tomu slou\u017e\u00ed tato funkce.<\/p>\n","protected":false},"author":1,"featured_media":8523,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[7,22],"tags":[100,372],"class_list":["post-658","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-codex","category-template-tags","tag-codex-wordpress","tag-template-tags"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/658"}],"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=658"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/658\/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=658"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=658"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=658"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}