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
234      if ( ! is_user_logged_in() ) {
235           if ( get_option('users_can_register') )
236                $link = $before . '<a href="' . site_url('wp-login.php?action=register', 'login') . '">' . __('Register') . '</a>' . $after;
237           else
238                $link = '';
239      } else {
240           $link = $before . '<a href="' . admin_url() . '">' . __('Site Admin') . '</a>' . $after;
241      }
242
243      echo apply_filters('register', $link);
244 }
245
246 /**
247  * Theme container function for the 'wp_meta' action.
248  *
249  * The 'wp_meta' action can have several purposes, depending on how you use it,
250  * but one purpose might have been to allow for theme switching.
251  *
252  * @since 1.5.0