xmlrpc_prepare_term
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
xmlrpc_prepare_term
wp-includes/class-wp-xmlrpc-server.php 880
return apply_filters( 'xmlrpc_prepare_term', $_term, $term );