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 2 times in this file.
Line | Code |
---|---|
2458 | } else { |
2459 | /** |
2460 | * Filters the taxonomy query fields used by the given XML-RPC method. |
2461 | * |
2462 | * @since 3.4.0 |
2463 | * |
2464 | * @param array $fields An array of taxonomy fields to retrieve. |
2465 | * @param string $method The method name. |
2466 | */ |
2467 | $fields = apply_filters( 'xmlrpc_default_taxonomy_fields', array( 'labels', 'cap', 'object_type' ), 'wp.getTaxonomy' ); |
2468 | } |
2469 |
|
2470 | if ( ! $user = $this->login( $username, $password ) ) { |
2471 | return $this->error; |
2472 | } |
2473 |
|
2474 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
2475 | do_action( 'xmlrpc_call', 'wp.getTaxonomy' ); |
2476 |
|
Line | Code |
2515 |
|
2516 | $username = $args[1]; |
2517 | $password = $args[2]; |
2518 | $filter = isset( $args[3] ) ? $args[3] : array( 'public' => true ); |
2519 |
|
2520 | if ( isset( $args[4] ) ) { |
2521 | $fields = $args[4]; |
2522 | } else { |
2523 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
2524 | $fields = apply_filters( 'xmlrpc_default_taxonomy_fields', array( 'labels', 'cap', 'object_type' ), 'wp.getTaxonomies' ); |
2525 | } |
2526 |
|
2527 | if ( ! $user = $this->login( $username, $password ) ) { |
2528 | return $this->error; |
2529 | } |
2530 |
|
2531 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
2532 | do_action( 'xmlrpc_call', 'wp.getTaxonomies' ); |
2533 |
|