acf_flush_taxonomy_cache()
Deletes all caches for the provided ACF taxonomy.
No Hooks.
Returns
null. Nothing (null).
Usage
acf_flush_taxonomy_cache( $taxonomy );
- $taxonomy(array) (required)
- The ACF taxonomy array.
Changelog
| Since 6.1 | Introduced. |
acf_flush_taxonomy_cache() acf flush taxonomy cache code ACF 6.8.8
function acf_flush_taxonomy_cache( array $taxonomy ) {
acf_flush_internal_post_type_cache( $taxonomy, 'acf-taxonomy' );
}