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