woocommerce_transient_file_contents_served action-hookWC 8.5.0

Action that fires after a transient file has been successfully served, right before terminating the request.

Usage

add_action( 'woocommerce_transient_file_contents_served', 'wp_kama_woocommerce_transient_file_contents_served_action' );

/**
 * Function for `woocommerce_transient_file_contents_served` action-hook.
 * 
 * @param array $transient_file_info Information about the served file, as returned by get_file_by_name.
 *
 * @return void
 */
function wp_kama_woocommerce_transient_file_contents_served_action( $transient_file_info ){

	// action...
}
$transient_file_info(array)
Information about the served file, as returned by get_file_by_name.

Changelog

Since 8.5.0 Introduced.

Where the hook is called

TransientFilesEngine::serve_file_contents()
woocommerce_transient_file_contents_served
woocommerce/src/Internal/TransientFiles/TransientFilesEngine.php 530
do_action( 'woocommerce_transient_file_contents_served', $file_name );

Where the hook is used in WooCommerce

Usage not found.