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.
This hook occurs 3 times in this file.
Line | Code |
---|---|
2676 | } else { |
2677 | /** |
2678 | * Filters the default user query fields used by the given XML-RPC method. |
2679 | * |
2680 | * @since 3.5.0 |
2681 | * |
2682 | * @param array $fields User query fields for given method. Default 'all'. |
2683 | * @param string $method The method name. |
2684 | */ |
2685 | $fields = apply_filters( 'xmlrpc_default_user_fields', array( 'all' ), 'wp.getUser' ); |
2686 | } |
2687 |
|
2688 | $user = $this->login( $username, $password ); |
2689 | if ( ! $user ) { |
2690 | return $this->error; |
2691 | } |
2692 |
|
2693 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
2694 | do_action( 'xmlrpc_call', 'wp.getUser', $args, $this ); |
Line | Code |
2739 |
|
2740 | $username = $args[1]; |
2741 | $password = $args[2]; |
2742 | $filter = isset( $args[3] ) ? $args[3] : array(); |
2743 |
|
2744 | if ( isset( $args[4] ) ) { |
2745 | $fields = $args[4]; |
2746 | } else { |
2747 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
2748 | $fields = apply_filters( 'xmlrpc_default_user_fields', array( 'all' ), 'wp.getUsers' ); |
2749 | } |
2750 |
|
2751 | $user = $this->login( $username, $password ); |
2752 | if ( ! $user ) { |
2753 | return $this->error; |
2754 | } |
2755 |
|
2756 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
2757 | do_action( 'xmlrpc_call', 'wp.getUsers', $args, $this ); |
Line | Code |
2819 | $this->escape( $args ); |
2820 |
|
2821 | $username = $args[1]; |
2822 | $password = $args[2]; |
2823 |
|
2824 | if ( isset( $args[3] ) ) { |
2825 | $fields = $args[3]; |
2826 | } else { |
2827 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
2828 | $fields = apply_filters( 'xmlrpc_default_user_fields', array( 'all' ), 'wp.getProfile' ); |
2829 | } |
2830 |
|
2831 | $user = $this->login( $username, $password ); |
2832 | if ( ! $user ) { |
2833 | return $this->error; |
2834 | } |
2835 |
|
2836 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
2837 | do_action( 'xmlrpc_call', 'wp.getProfile', $args, $this ); |