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 |
---|---|
2479 | } else { |
2480 | /** |
2481 | * Filters the taxonomy query fields used by the given XML-RPC method. |
2482 | * |
2483 | * @since 3.4.0 |
2484 | * |
2485 | * @param array $fields An array of taxonomy fields to retrieve. |
2486 | * @param string $method The method name. |
2487 | */ |
2488 | $fields = apply_filters( 'xmlrpc_default_taxonomy_fields', array( 'labels', 'cap', 'object_type' ), 'wp.getTaxonomy' ); |
2489 | } |
2490 |
|
2491 | $user = $this->login( $username, $password ); |
2492 | if ( ! $user ) { |
2493 | return $this->error; |
2494 | } |
2495 |
|
2496 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
2497 | do_action( 'xmlrpc_call', 'wp.getTaxonomy' ); |
Line | Code |
2537 |
|
2538 | $username = $args[1]; |
2539 | $password = $args[2]; |
2540 | $filter = isset( $args[3] ) ? $args[3] : array( 'public' => true ); |
2541 |
|
2542 | if ( isset( $args[4] ) ) { |
2543 | $fields = $args[4]; |
2544 | } else { |
2545 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
2546 | $fields = apply_filters( 'xmlrpc_default_taxonomy_fields', array( 'labels', 'cap', 'object_type' ), 'wp.getTaxonomies' ); |
2547 | } |
2548 |
|
2549 | $user = $this->login( $username, $password ); |
2550 | if ( ! $user ) { |
2551 | return $this->error; |
2552 | } |
2553 |
|
2554 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
2555 | do_action( 'xmlrpc_call', 'wp.getTaxonomies' ); |