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