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