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 |
---|---|
2633 | } else { |
2634 | /** |
2635 | * Filters the default user query fields used by the given XML-RPC method. |
2636 | * |
2637 | * @since 3.5.0 |
2638 | * |
2639 | * @param array $fields User query fields for given method. Default 'all'. |
2640 | * @param string $method The method name. |
2641 | */ |
2642 | $fields = apply_filters( 'xmlrpc_default_user_fields', array( 'all' ), 'wp.getUser' ); |
2643 | } |
2644 |
|
2645 | $user = $this->login( $username, $password ); |
2646 | if ( ! $user ) { |
2647 | return $this->error; |
2648 | } |
2649 |
|
2650 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
2651 | do_action( 'xmlrpc_call', 'wp.getUser', $args, $this ); |
Line | Code |
2696 |
|
2697 | $username = $args[1]; |
2698 | $password = $args[2]; |
2699 | $filter = isset( $args[3] ) ? $args[3] : array(); |
2700 |
|
2701 | if ( isset( $args[4] ) ) { |
2702 | $fields = $args[4]; |
2703 | } else { |
2704 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
2705 | $fields = apply_filters( 'xmlrpc_default_user_fields', array( 'all' ), 'wp.getUsers' ); |
2706 | } |
2707 |
|
2708 | $user = $this->login( $username, $password ); |
2709 | if ( ! $user ) { |
2710 | return $this->error; |
2711 | } |
2712 |
|
2713 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
2714 | do_action( 'xmlrpc_call', 'wp.getUsers', $args, $this ); |
Line | Code |
2776 | $this->escape( $args ); |
2777 |
|
2778 | $username = $args[1]; |
2779 | $password = $args[2]; |
2780 |
|
2781 | if ( isset( $args[3] ) ) { |
2782 | $fields = $args[3]; |
2783 | } else { |
2784 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
2785 | $fields = apply_filters( 'xmlrpc_default_user_fields', array( 'all' ), 'wp.getProfile' ); |
2786 | } |
2787 |
|
2788 | $user = $this->login( $username, $password ); |
2789 | if ( ! $user ) { |
2790 | return $this->error; |
2791 | } |
2792 |
|
2793 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
2794 | do_action( 'xmlrpc_call', 'wp.getProfile', $args, $this ); |