Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: blog_redirect_404

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
1259
1260      if ( wp_create_nonce('signup_form_' . $_POST[ 'signup_form_id' ]) != $_POST['_signup_form'] )
1261           wp_die( __('Please try again!') );
1262
1263      return $result;
1264 }
1265
1266 function maybe_redirect_404() {
1267      global $current_site;
1268      if ( is_main_site() && is_404() && defined( 'NOBLOGREDIRECT' ) && ( $destination = apply_filters( 'blog_redirect_404', NOBLOGREDIRECT ) ) ) {
1269           if ( $destination == '%siteurl%' )
1270                $destination = network_home_url();
1271           wp_redirect( $destination );
1272           exit();
1273      }
1274 }
1275
1276 function maybe_add_existing_user_to_blog() {
1277      if ( false === strpos( $_SERVER[ 'REQUEST_URI' ], '/newbloguser/' ) )