Welcome, visitor! Log in
 

Source View: login_url

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

  • Action hooks look like this: do_action( "hook_name" )
  • Filter hooks look like this: apply_filters( "hook_name", "what_to_filter" ).

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
237 function wp_login_url($redirect = '', $force_reauth = false) {
238      $login_url = site_url('wp-login.php', 'login');
239
240      if ( !empty($redirect) )
241           $login_url = add_query_arg('redirect_to', urlencode($redirect), $login_url);
242
243      if ( $force_reauth )
244           $login_url = add_query_arg('reauth', '1', $login_url);
245
246      return apply_filters('login_url', $login_url, $redirect);
247 }
248
249 /**
250  * Provides a simple login form for use anywhere within WordPress. By default, it echoes
251  * the HTML immediately. Pass array('echo'=>false) to return the string instead.
252  *
253  * @since 3.0.0
254  * @param array $args Configuration options to modify the form output.
255  * @return string|null String when retrieving, null when displaying.