{"id":705,"date":"2013-06-27T09:35:40","date_gmt":"2013-06-27T09:35:40","guid":{"rendered":"http:\/\/musilda.cz\/?p=705"},"modified":"2013-06-27T09:35:40","modified_gmt":"2013-06-27T09:35:40","slug":"funkce-wp_login_url","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/funkce-wp_login_url\/","title":{"rendered":"Funkce wp_login_url"},"content":{"rendered":"
Funkce wp_login_url vrac\u00ed url adresu, kter\u00e1 umo\u017e\u0148uje p\u0159ihl\u00e1\u0161en\u00ed u\u017eivatele. Adresa pro p\u0159ihl\u00e1\u0161en\u00ed je \/wp-login.php a tato funkce vytvo\u0159\u00ed odkaz na p\u0159ihla\u0161ovac\u00ed formul\u00e1\u0159. Pokud v\u0161ak chcete u\u017eivatele nasm\u011brovat po p\u0159ihl\u00e1\u0161en\u00ed nap\u0159\u00edklad na hlavn\u00ed stranu, m\u016f\u017eete vyu\u017e\u00edt parametr t\u00e9to funkce.\u00a0<\/p>\n
echo\u00a0wp_login_url(\u00a0$redirect\u00a0);<\/pre>\nParametr $redirect je url na kterou bude u\u017eivatel p\u0159esm\u011brov\u00e1n po p\u0159ihl\u00e1\u0161en\u00ed. Url mus\u00ed b\u00fdt absolutn\u00ed, s relativn\u00ed adresou to nebude fungovat.<\/p>\n
P\u0159ihl\u00e1\u0161en\u00ed a p\u0159esm\u011brov\u00e1n\u00ed na homepage<\/p>\n
<a href="\" title=\"Login\">Login<\/a><\/pre>\n","protected":false},"excerpt":{"rendered":"Funkce wp_login_url vrac\u00ed url adresu, kter\u00e1 umo\u017e\u0148uje p\u0159ihl\u00e1\u0161en\u00ed u\u017eivatele. Adresa pro p\u0159ihl\u00e1\u0161en\u00ed je \/wp-login.php a tato funkce vytvo\u0159\u00ed odkaz na p\u0159ihla\u0161ovac\u00ed formul\u00e1\u0159. Pokud v\u0161ak chcete u\u017eivatele nasm\u011brovat po p\u0159ihl\u00e1\u0161en\u00ed nap\u0159\u00edklad na hlavn\u00ed stranu, m\u016f\u017eete vyu\u017e\u00edt parametr t\u00e9to funkce.\u00a0<\/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":[524],"class_list":["post-705","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-codex","category-template-tags","tag-wordpress-template-tags"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/705"}],"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=705"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/705\/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=705"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=705"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=705"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}