wp_login_url [ WordPress Function ]
wp_login_url ( $redirect = '', $force_reauth = false )
| Parameters: |
|
| Uses: | |
| Returns: |
|
| 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
- Function Reference/wp login url « WordPress Codex
Description. This Template Tag returns the URL that allows the user to log in to the site. Usage. <?php echo wp_login_url( $redirect ); ?> Parameters. $redirect ...
codex.wordpress.org - WordPress › Support » Where to use template tags wp_login_url ...
At present, if a user (subscriber role) logs in to my site using the login in the footer , they will get redirected to the WordPress manage profile page rather than ...
wordpress.org - wp_login_url (WordPress Function) - WPSeek.com
WordPress lookup for wp_login_url, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com - Use WordPress Login - WP Engineer
Nov 6, 2009 ... <?php $redirect = 'wp-admin/post-new.php'; if ( !is_user_logged_in() ) { $link = '< a href="' . esc_url( wp_login_url( $redirect ) ) . '">' . __('Login') ...
wpengineer.com
Gebruikersdiscussies [ wordpress.org ]
- brasofilo on "Where to use template tags wp_login_url & wp_logout_url"
- Luke Rumley on "Conditional login/logout link"
- simoncmason on "Conditional login/logout link"
- Earthman Web & Media Consulting on "Conditional login/logout link"
- Hamburger on "wp_login_url redirection from a 404 page"
- Hamburger on "wp_login_url redirection from a 404 page"
- lgedeon on "Where to use template tags wp_login_url & wp_logout_url"
- n8steve on "Where to use template tags wp_login_url & wp_logout_url"
- MichaelH on "Where to use template tags wp_login_url & wp_logout_url"
- n8steve on "Where to use template tags wp_login_url & wp_logout_url"