add_signup_meta

Filters the new default site meta variables.

Description

apply_filters( 'add_signup_meta', (array) $meta_defaults ); 

Parameters (1)

0. $meta_defaults (array)

Usage

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

Defined (3)

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

/wp-signup.php  
  1. $meta = apply_filters( 'add_signup_meta', $meta_defaults ); 
  1. wpmu_signup_user( $user_name, $user_email, apply_filters( 'add_signup_meta', array() ) ); 
  1. $meta = apply_filters( 'add_signup_meta', $signup_meta );