Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_login_url [ WordPress Function ]

wp_login_url ( $redirect = '', $force_reauth = false )
Parameters:
  • (string) $redirect Path to redirect to on login.
  • (bool) $force_reauth Whether to force reauthorization, even if a cookie is present. Default is false.
Uses:
Returns:
  • (string) A log in url
Defined at:



Returns the Log In URL.

Returns the URL that allows the user to log in to the site

Source


<?php
function wp_login_url($redirect ''$force_reauth false) {
    
$login_url site_url('wp-login.php''login');

    if ( !empty(
$redirect) )
        
$login_url add_query_arg('redirect_to'urlencode($redirect), $login_url);

    if ( 
$force_reauth )
        
$login_url add_query_arg('reauth''1'$login_url);

    return 
apply_filters('login_url'$login_url$redirect);
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics