HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/mmickelson/theflexguy.com/wp-content/plugins/woocommerce/includes/cli/class-wc-cli-tool.php
<?php

/**
 * Tools for WooCommerce.
 *
 * @since    2.5.0
 * @package  WooCommerce/CLI
 * @category CLI
 * @author   WooThemes
 */
class WC_CLI_Tool extends WC_CLI_Command {

	/**
	 * Clear the product/shop transients cache.
	 *
	 * ## EXAMPLES
	 *
	 *     wp wc tool clear_transients
	 *
	 * @since 2.5.0
	 */
	public function clear_transients( $args, $assoc_args ) {
		wc_delete_product_transients();
		wc_delete_shop_order_transients();
		WC_Cache_Helper::get_transient_version( 'shipping', true );

		WP_CLI::success( 'Product transients and shop order transients were cleared.' );
	}
}