signup_create_blog_meta

Filters the new site meta variables.

Description

apply_filters( 'signup_create_blog_meta', (array) $blog_meta_defaults ); 

Use the filter instead.

Parameters (1)

0. $blog_meta_defaults (array)
An array of default blog meta variables.

Usage

To run the hook, copy the example below.
  1. $blog_meta_defaults = apply_filters( 'signup_create_blog_meta', $blog_meta_defaults ); 
  2.  
  3. if ( !empty( $blog_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 signup_create_blog_meta callback 
  2. function filter_signup_create_blog_meta( $blog_meta_defaults ) { 
  3. // make filter magic happen here... 
  4. return $blog_meta_defaults
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'signup_create_blog_meta', 'filter_signup_create_blog_meta', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'signup_create_blog_meta', 'filter_signup_create_blog_meta', 10, 1 ); 

Defined (1)

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

/wp-signup.php  
  1. $meta_defaults = apply_filters( 'signup_create_blog_meta', $blog_meta_defaults );