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 |
---|---|
2192 | } else { |
2193 | /** |
2194 | * Filter the default user query fields used by the given XML-RPC method. |
2195 | * |
2196 | * @since 3.5.0 |
2197 | * |
2198 | * @param array $fields User query fields for given method. Default 'all'. |
2199 | * @param string $method The method name. |
2200 | */ |
2201 | $fields = apply_filters( 'xmlrpc_default_user_fields', array( 'all' ), 'wp.getUser' ); |
2202 | } |
2203 |
|
2204 | if ( ! $user = $this->login( $username, $password ) ) |
2205 | return $this->error; |
2206 |
|
2207 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
2208 | do_action( 'xmlrpc_call', 'wp.getUser' ); |
2209 |
|
2210 | if ( ! current_user_can( 'edit_user', $user_id ) ) |
Line | Code |
2248 | $blog_id = (int) $args[0]; |
2249 | $username = $args[1]; |
2250 | $password = $args[2]; |
2251 | $filter = isset( $args[3] ) ? $args[3] : array(); |
2252 |
|
2253 | if ( isset( $args[4] ) ) { |
2254 | $fields = $args[4]; |
2255 | } else { |
2256 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
2257 | $fields = apply_filters( 'xmlrpc_default_user_fields', array( 'all' ), 'wp.getUsers' ); |
2258 | } |
2259 |
|
2260 | if ( ! $user = $this->login( $username, $password ) ) |
2261 | return $this->error; |
2262 |
|
2263 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
2264 | do_action( 'xmlrpc_call', 'wp.getUsers' ); |
2265 |
|
2266 | if ( ! current_user_can( 'list_users' ) ) |
Line | Code |
2318 |
|
2319 | $blog_id = (int) $args[0]; |
2320 | $username = $args[1]; |
2321 | $password = $args[2]; |
2322 |
|
2323 | if ( isset( $args[3] ) ) { |
2324 | $fields = $args[3]; |
2325 | } else { |
2326 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
2327 | $fields = apply_filters( 'xmlrpc_default_user_fields', array( 'all' ), 'wp.getProfile' ); |
2328 | } |
2329 |
|
2330 | if ( ! $user = $this->login( $username, $password ) ) |
2331 | return $this->error; |
2332 |
|
2333 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
2334 | do_action( 'xmlrpc_call', 'wp.getProfile' ); |
2335 |
|
2336 | if ( ! current_user_can( 'edit_user', $user->ID ) ) |