add_signup_meta
Filters the new default site meta variables.
Description
Parameters (1)
- 0. $meta_defaults (array)
Usage
- To run the hook, copy the example below.
- $meta_defaults = apply_filters( 'add_signup_meta', $meta_defaults );
- if ( !empty( $meta_defaults ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the add_signup_meta callback
- function filter_add_signup_meta( $meta_defaults ) {
- // make filter magic happen here...
- return $meta_defaults;
- };
- // add the filter
- add_filter( 'add_signup_meta', 'filter_add_signup_meta', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- 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
- $meta = apply_filters( 'add_signup_meta', $meta_defaults );
- wpmu_signup_user( $user_name, $user_email, apply_filters( 'add_signup_meta', array() ) );
- $meta = apply_filters( 'add_signup_meta', $signup_meta );