clean_object_term_cache
Fires after the object term cache has been cleaned.
Usage
add_action( 'clean_object_term_cache', 'wp_kama_clean_object_term_cache_action', 10, 2 ); /** * Function for `clean_object_term_cache` action-hook. * * @param array $object_ids An array of object IDs. * @param string $object_type Object type. * * @return void */ function wp_kama_clean_object_term_cache_action( $object_ids, $object_type ){ // action... }
- $object_ids(array)
- An array of object IDs.
- $object_type(string)
- Object type.
Changelog
Since 2.5.0 | Introduced. |
Where the hook is called
clean_object_term_cache
wp-includes/taxonomy.php 3559
do_action( 'clean_object_term_cache', $object_ids, $object_type );