Definition:
function wp_login_url($redirect = '', $force_reauth = false) {}
Returns the Log In URL.
Returns the URL that allows the user to log in to the site
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.
Return values
returns:A log in url
Defined filters
- login_url
apply_filters('login_url', $login_url, $redirect)
Source code
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); }
3885
No comments yet... Be the first to leave a reply!