wpmu_active_signup

Filters the type of site sign-up.

Description

apply_filters( 'wpmu_active_signup', (string) $active_signup ); 

Parameters (1)

0. $active_signup (string)
String that returns registration type. The value can be all,, none., blog, or user.

Usage

To run the hook, copy the example below.
  1. $active_signup = apply_filters( 'wpmu_active_signup', $active_signup ); 
  2.  
  3. if ( !empty( $active_signup ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the wpmu_active_signup callback 
  2. function filter_wpmu_active_signup( $active_signup ) { 
  3. // make filter magic happen here... 
  4. return $active_signup
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'wpmu_active_signup', 'filter_wpmu_active_signup', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'wpmu_active_signup', 'filter_wpmu_active_signup', 10, 1 ); 

Defined (1)

The filter is defined in the following location(s).

/wp-signup.php  
  1. $active_signup = apply_filters( 'wpmu_active_signup', $active_signup );