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 |
---|---|
917 | } else { |
918 | if ( in_array( 'basic', $fields ) ) { |
919 | $basic_fields = array( 'username', 'email', 'registered', 'display_name', 'nicename' ); |
920 | $fields = array_merge( $fields, $basic_fields ); |
921 | } |
922 | $requested_fields = array_intersect_key( $user_fields, array_flip( $fields ) ); |
923 | $_user = array_merge( $_user, $requested_fields ); |
924 | } |
925 |
|
926 | return apply_filters( 'xmlrpc_prepare_user', $_user, $user, $fields ); |
927 | } |
928 |
|
929 | /** |
930 | * Create a new post for any registered post type. |
931 | * |
932 | * @since 3.4.0 |
933 | * |
934 | * @param array $args Method parameters. Contains: |
935 | * - int $blog_id |