Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

tr:Fonksiyon Listesi/wp login url

Açıklama

Bu tema etiketi, kullanıcıları giriş yapabilecekleri sayfaya yönlendirir.

Kullanım

 <?php echo wp_login_url$redirect ); ?> 

Parametreler

$redirect
(string) (İsteğe bağlı) URL üzerinde oturum yönlendirmek için.
Default: None

Örnekler

Normal Kullanım

<a href="<?php echo wp_login_url(); ?>" title="Giriş">Giriş</a>

Giriş yap ve Geçerli sayfaya yönlendir

<a href="<?php echo wp_login_url( get_permalink() ); ?>" title="Giriş">Giriş</a>

Giriş yap ve Anasayfa'ya yönlendir

<a href="<?php echo wp_login_url( get_bloginfo('url') ); ?>" title="Giriş">Giriş</a>

Kaynak Dosya

wp_login_url() wp-includes/general-template.php dosyasında yer alır.


Benzerler

Login Tags: is_user_logged_in(), wp_login_form(), wp_loginout(), wp_logout(), wp_register()
Login URLs: wp_login_url(), wp_logout_url(), wp_lostpassword_url(), wp_registration_url()

See also index of Function Reference and index of Template Tags.