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 |
---|---|
2346 | } else { |
2347 | /** |
2348 | * Filters the taxonomy query fields used by the given XML-RPC method. |
2349 | * |
2350 | * @since 3.4.0 |
2351 | * |
2352 | * @param array $fields An array of taxonomy fields to retrieve. |
2353 | * @param string $method The method name. |
2354 | */ |
2355 | $fields = apply_filters( 'xmlrpc_default_taxonomy_fields', array( 'labels', 'cap', 'object_type' ), 'wp.getTaxonomy' ); |
2356 | } |
2357 |
|
2358 | if ( ! $user = $this->login( $username, $password ) ) |
2359 | return $this->error; |
2360 |
|
2361 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
2362 | do_action( 'xmlrpc_call', 'wp.getTaxonomy' ); |
2363 |
|
2364 | if ( ! taxonomy_exists( $taxonomy ) ) |
Line | Code |
2399 |
|
2400 | $username = $args[1]; |
2401 | $password = $args[2]; |
2402 | $filter = isset( $args[3] ) ? $args[3] : array( 'public' => true ); |
2403 |
|
2404 | if ( isset( $args[4] ) ) { |
2405 | $fields = $args[4]; |
2406 | } else { |
2407 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
2408 | $fields = apply_filters( 'xmlrpc_default_taxonomy_fields', array( 'labels', 'cap', 'object_type' ), 'wp.getTaxonomies' ); |
2409 | } |
2410 |
|
2411 | if ( ! $user = $this->login( $username, $password ) ) |
2412 | return $this->error; |
2413 |
|
2414 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
2415 | do_action( 'xmlrpc_call', 'wp.getTaxonomies' ); |
2416 |
|
2417 | $taxonomies = get_taxonomies( $filter, 'objects' ); |