xmlrpc_prepare_term filter-hookWP 3.4.0

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

Usage

add_filter( 'xmlrpc_prepare_term', 'wp_kama_xmlrpc_prepare_term_filter', 10, 2 );

/**
 * Function for `xmlrpc_prepare_term` filter-hook.
 * 
 * @param array        $_term An array of term data.
 * @param array|object $term  Term object or array.
 *
 * @return array
 */
function wp_kama_xmlrpc_prepare_term_filter( $_term, $term ){

	// filter...
	return $_term;
}
$_term(array)
An array of term data.
$term(array|object)
Term object or array.

Changelog

Since 3.4.0 Introduced.

Where the hook is called

wp_xmlrpc_server::_prepare_term()
xmlrpc_prepare_term
wp-includes/class-wp-xmlrpc-server.php 866
return apply_filters( 'xmlrpc_prepare_term', $_term, $term );

Where the hook is used in WordPress

Usage not found.