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