xmlrpc_prepare_taxonomy filter-hookWP 3.4.0

Filters XML-RPC-prepared data for the given taxonomy.

Usage

add_filter( 'xmlrpc_prepare_taxonomy', 'wp_kama_xmlrpc_prepare_taxonomy_filter', 10, 3 );

/**
 * Function for `xmlrpc_prepare_taxonomy` filter-hook.
 * 
 * @param array       $_taxonomy An array of taxonomy data.
 * @param WP_Taxonomy $taxonomy  Taxonomy object.
 * @param array       $fields    The subset of taxonomy fields to return.
 *
 * @return array
 */
function wp_kama_xmlrpc_prepare_taxonomy_filter( $_taxonomy, $taxonomy, $fields ){

	// filter...
	return $_taxonomy;
}
$_taxonomy(array)
An array of taxonomy data.
$taxonomy(WP_Taxonomy)
Taxonomy object.
$fields(array)
The subset of taxonomy fields to return.

Changelog

Since 3.4.0 Introduced.

Where the hook is called

wp_xmlrpc_server::_prepare_taxonomy()
xmlrpc_prepare_taxonomy
wp-includes/class-wp-xmlrpc-server.php 831
return apply_filters( 'xmlrpc_prepare_taxonomy', $_taxonomy, $taxonomy, $fields );

Where the hook is used in WordPress

Usage not found.