Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: register

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
526       * Filter the HTML link to the Registration or Admin page.
527       *
528       * Users are sent to the admin page if logged-in, or the registration page
529       * if enabled and logged-out.
530       *
531       * @since 1.5.0
532       *
533       * @param string $link The HTML code for the link to the Registration or Admin page.
534       */
535      $link = apply_filters( 'register', $link );
536
537      if ( $echo ) {
538           echo $link;
539      } else {
540           return $link;
541      }
542 }
543
544 /**