xmlrpc_prepare_taxonomy
Filter HookDescription
Filters XML-RPC-prepared data for the given taxonomy.Hook Information
File Location |
wp-includes/class-wp-xmlrpc-server.php
View on GitHub
|
Hook Type | Filter |
Line Number | 845 |
Hook Parameters
Type | Name | Description |
---|---|---|
array
|
$_taxonomy
|
An array of taxonomy data. |
WP_Taxonomy
|
$taxonomy
|
Taxonomy object. |
array
|
$fields
|
The subset of taxonomy fields to return. |
Usage Examples
Basic Usage
<?php
// Hook into xmlrpc_prepare_taxonomy
add_filter('xmlrpc_prepare_taxonomy', 'my_custom_filter', 10, 3);
function my_custom_filter($_taxonomy, $taxonomy, $fields) {
// Your custom filtering logic here
return $_taxonomy;
}
Source Code Context
wp-includes/class-wp-xmlrpc-server.php:845
- How this hook is used in WordPress core
<?php
840 *
841 * @param array $_taxonomy An array of taxonomy data.
842 * @param WP_Taxonomy $taxonomy Taxonomy object.
843 * @param array $fields The subset of taxonomy fields to return.
844 */
845 return apply_filters( 'xmlrpc_prepare_taxonomy', $_taxonomy, $taxonomy, $fields );
846 }
847
848 /**
849 * Prepares term data for return in an XML-RPC object.
850 *
PHP Documentation
<?php
/**
* Filters XML-RPC-prepared data for the given taxonomy.
*
* @since 3.4.0
*
* @param array $_taxonomy An array of taxonomy data.
* @param WP_Taxonomy $taxonomy Taxonomy object.
* @param array $fields The subset of taxonomy fields to return.
*/
Quick Info
- Hook Type: Filter
- Parameters: 3
- File: wp-includes/class-wp-xmlrpc-server.php
Related Hooks
Related hooks will be displayed here in future updates.