woocommerce_delete_version_transients_limit

woocommerce_delete_version_transients_limit

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_delete_version_transients_limit') is found 1 times:

  • /includes/class-wc-cache-helper.php line 319
    	public static function delete_version_transients( $version = '' ) {
    		if ( ! wp_using_ext_object_cache() && ! empty( $version ) ) {
    			global $wpdb;
    
    			$limit = apply_filters( 'woocommerce_delete_version_transients_limit', 1000 );
    
    			if ( ! $limit ) {
    				return;
    			}
    
    			$affected = $wpdb->query( $wpdb->prepare( "DELETE FROM {$wpdb->options} WHERE option_name LIKE %s LIMIT %d;", '\_transient\_%' . $version, $limit ) ); // WPCS: cache ok, db call ok.