{"id":619,"date":"2013-06-14T18:00:01","date_gmt":"2013-06-14T18:00:01","guid":{"rendered":"http:\/\/musilda.cz\/?p=619"},"modified":"2013-06-14T18:00:01","modified_gmt":"2013-06-14T18:00:01","slug":"funkce-wp_loginout","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/funkce-wp_loginout\/","title":{"rendered":"Funkce wp_loginout"},"content":{"rendered":"
Funkce wp_loginout pat\u0159\u00ed mezi ty s jednoduch\u00fdm vyu\u017eit\u00edm. V p\u0159\u00edpad\u011b, \u017ee je u\u017eivatel p\u0159ihl\u00e1\u0161en\u00fd, zobrazuje odkaz pro odhl\u00e1\u0161en\u00ed a naopak, pokud nen\u00ed n\u00e1v\u0161t\u011bvn\u00edk p\u0159ihl\u00e1\u0161en\u00fd, zobrazuje odkaz na p\u0159ihla\u0161ovac\u00ed formul\u00e1\u0159.<\/p>\n
Pou\u017eit\u00ed:<\/p>\n
\n<\/pre>\nFunkce m\u00e1 dva parametry – wp_loginout( $redirect, $echo );, p\u0159i\u010dem\u017e oba jsou nepovinn\u00e9.
\n$redirect je url, kam se m\u00e1 u\u017eivatel po akci p\u0159esm\u011brovat. $echo ur\u010duje, zda se funkce rovnou vyp\u00ed\u0161e, nebo vr\u00e1t\u00ed jako \u0159et\u011bzec.<\/p>\n","protected":false},"excerpt":{"rendered":"
Funkce wp_loginout pat\u0159\u00ed mezi ty s jednoduch\u00fdm vyu\u017eit\u00edm. V p\u0159\u00edpad\u011b, \u017ee je u\u017eivatel p\u0159ihl\u00e1\u0161en\u00fd, zobrazuje odkaz pro odhl\u00e1\u0161en\u00ed a naopak, pokud nen\u00ed n\u00e1v\u0161t\u011bvn\u00edk p\u0159ihl\u00e1\u0161en\u00fd, zobrazuje odkaz na p\u0159ihla\u0161ovac\u00ed formul\u00e1\u0159.<\/p>\n","protected":false},"author":1,"featured_media":8523,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,22],"tags":[483,542],"class_list":["post-619","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-codex","category-template-tags","tag-wordpress-codex","tag-wp_loginout"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/619"}],"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=619"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/619\/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=619"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=619"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=619"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}