WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
3837 | * An array of name-value pairs of additional user data items. Default empty array. |
3838 | * |
3839 | * @type string $name The user-facing name of an item name-value pair,e.g. 'IP Address'. |
3840 | * @type string $value The user-facing value of an item data pair, e.g. '50.60.70.0'. |
3841 | * } |
3842 | * @param WP_User $user The user whose data is being exported. |
3843 | * @param string[] $reserved_names An array of reserved names. Any item in `$additional_user_data` |
3844 | * that uses one of these for its `name` will not be included in the export. |
3845 | */ |
3846 | $_extra_data = apply_filters( 'wp_privacy_additional_user_profile_data', array(), $user, $reserved_names ); |
3847 |
|
3848 | if ( is_array( $_extra_data ) && ! empty( $_extra_data ) ) { |
3849 | // Remove items that use reserved names. |
3850 | $extra_data = array_filter( |
3851 | $_extra_data, |
3852 | static function( $item ) use ( $reserved_names ) { |
3853 | return ! in_array( $item['name'], $reserved_names, true ); |
3854 | } |
3855 | ); |