clean_taxonomy_cache
Action HookDescription
Fires after a taxonomy's caches have been cleaned.Hook Information
File Location |
wp-includes/taxonomy.php
View on GitHub
|
Hook Type | Action |
Line Number | 3739 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$taxonomy
|
Taxonomy slug. |
Usage Examples
Basic Usage
<?php
// Hook into clean_taxonomy_cache
add_action('clean_taxonomy_cache', 'my_custom_function', 10, 1);
function my_custom_function($taxonomy) {
// Your custom code here
}
Source Code Context
wp-includes/taxonomy.php:3739
- How this hook is used in WordPress core
<?php
3734 *
3735 * @since 4.9.0
3736 *
3737 * @param string $taxonomy Taxonomy slug.
3738 */
3739 do_action( 'clean_taxonomy_cache', $taxonomy );
3740 }
3741
3742 /**
3743 * Retrieves the cached term objects for the given object ID.
3744 *
PHP Documentation
<?php
/**
* Fires after a taxonomy's caches have been cleaned.
*
* @since 4.9.0
*
* @param string $taxonomy Taxonomy slug.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-includes/taxonomy.php
Related Hooks
Related hooks will be displayed here in future updates.