Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_signup_location

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
55      <div id="message" class="updated notice is-dismissible"><p><strong><?php _e( 'Settings saved.' ); ?></strong></p></div>
56 <?php } ?>
57
58 <div class="wrap">
59 <h1><?php
60 echo esc_html( $title );
61
62 if ( in_array( get_site_option( 'registration' ), array( 'all', 'blog' ) ) ) {
63      /** This filter is documented in wp-login.php */
64      $sign_up_url = apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) );
65      printf( ' <a href="%s" class="page-title-action">%s</a>', esc_url( $sign_up_url ), esc_html_x( 'Add New', 'site' ) );
66 }
67 ?></h1>
68
69 <?php
70 if ( empty( $blogs ) ) :
71      echo '<p>';
72      _e( 'You must be a member of at least one site to use this page.' );
73      echo '</p>';