Automattic\WooCommerce\Internal\ProductFilters
CacheController::register
Hook into actions and filters.
Method of the class: CacheController{}
No Hooks.
Returns
null. Nothing (null).
Usage
$CacheController = new CacheController(); $CacheController->register();
CacheController::register() CacheController::register code WC 10.3.3
public function register() {
add_action( 'woocommerce_after_product_object_save', array( $this, 'clear_filter_data_cache' ) );
add_action( 'woocommerce_delete_product_transients', array( $this, 'clear_filter_data_cache' ) );
// Clear taxonomy hierarchy cache when terms change.
add_action( 'created_term', array( $this, 'clear_taxonomy_hierarchy_cache' ), 10, 3 );
add_action( 'edited_term', array( $this, 'clear_taxonomy_hierarchy_cache' ), 10, 3 );
add_action( 'delete_term', array( $this, 'clear_taxonomy_hierarchy_cache' ), 10, 3 );
}