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 |
---|---|
2600 | } else { |
2601 | /** |
2602 | * Filters the default user query fields used by the given XML-RPC method. |
2603 | * |
2604 | * @since 3.5.0 |
2605 | * |
2606 | * @param array $fields User query fields for given method. Default 'all'. |
2607 | * @param string $method The method name. |
2608 | */ |
2609 | $fields = apply_filters( 'xmlrpc_default_user_fields', array( 'all' ), 'wp.getUser' ); |
2610 | } |
2611 |
|
2612 | if ( ! $user = $this->login( $username, $password ) ) { |
2613 | return $this->error; |
2614 | } |
2615 |
|
2616 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
2617 | do_action( 'xmlrpc_call', 'wp.getUser' ); |
2618 |
|
Line | Code |
2662 |
|
2663 | $username = $args[1]; |
2664 | $password = $args[2]; |
2665 | $filter = isset( $args[3] ) ? $args[3] : array(); |
2666 |
|
2667 | if ( isset( $args[4] ) ) { |
2668 | $fields = $args[4]; |
2669 | } else { |
2670 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
2671 | $fields = apply_filters( 'xmlrpc_default_user_fields', array( 'all' ), 'wp.getUsers' ); |
2672 | } |
2673 |
|
2674 | if ( ! $user = $this->login( $username, $password ) ) { |
2675 | return $this->error; |
2676 | } |
2677 |
|
2678 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
2679 | do_action( 'xmlrpc_call', 'wp.getUsers' ); |
2680 |
|
Line | Code |
2741 | $this->escape( $args ); |
2742 |
|
2743 | $username = $args[1]; |
2744 | $password = $args[2]; |
2745 |
|
2746 | if ( isset( $args[3] ) ) { |
2747 | $fields = $args[3]; |
2748 | } else { |
2749 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
2750 | $fields = apply_filters( 'xmlrpc_default_user_fields', array( 'all' ), 'wp.getProfile' ); |
2751 | } |
2752 |
|
2753 | if ( ! $user = $this->login( $username, $password ) ) { |
2754 | return $this->error; |
2755 | } |
2756 |
|
2757 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
2758 | do_action( 'xmlrpc_call', 'wp.getProfile' ); |
2759 |
|