Filter hook 'xmlrpc_prepare_term'

in WP Core File wp-includes/class-wp-xmlrpc-server.php at line 880

View Source

xmlrpc_prepare_term

Filter Hook
Description
Filters XML-RPC-prepared data for the given term.

Hook Information

File Location wp-includes/class-wp-xmlrpc-server.php View on GitHub
Hook Type Filter
Line Number 880

Hook Parameters

Type Name Description
array $_term An array of term data.
array|object $term Term object or array.

Usage Examples

Basic Usage
<?php
// Hook into xmlrpc_prepare_term
add_filter('xmlrpc_prepare_term', 'my_custom_filter', 10, 2);

function my_custom_filter($_term, $term) {
    // Your custom filtering logic here
    return $_term;
}

Source Code Context

wp-includes/class-wp-xmlrpc-server.php:880 - How this hook is used in WordPress core
<?php
 875  		 * @since 3.4.0
 876  		 *
 877  		 * @param array        $_term An array of term data.
 878  		 * @param array|object $term  Term object or array.
 879  		 */
 880  		return apply_filters( 'xmlrpc_prepare_term', $_term, $term );
 881  	}
 882  
 883  	/**
 884  	 * Converts a WordPress date string to an IXR_Date object.
 885  	 *

PHP Documentation

<?php
/**
		 * Filters XML-RPC-prepared data for the given term.
		 *
		 * @since 3.4.0
		 *
		 * @param array        $_term An array of term data.
		 * @param array|object $term  Term object or array.
		 */
Quick Info
  • Hook Type: Filter
  • Parameters: 2
  • File: wp-includes/class-wp-xmlrpc-server.php
Related Hooks

Related hooks will be displayed here in future updates.