Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: lostpassword_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.

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
353  * @return string Lost password URL.
354  */
355 function wp_lostpassword_url( $redirect = '' ) {
356      $args = array( 'action' => 'lostpassword' );
357      if ( !empty($redirect) ) {
358           $args['redirect_to'] = $redirect;
359      }
360
361      $lostpassword_url = add_query_arg( $args, network_site_url('wp-login.php', 'login') );
362      return apply_filters( 'lostpassword_url', $lostpassword_url, $redirect );
363 }
364
365 /**
366  * Display the Registration or Admin link.
367  *
368  * Display a link which allows the user to navigate to the registration page if
369  * not logged in and registration is enabled or to the dashboard if logged in.
370  *
371  * @since 1.5.0