woocommerce_transient_file_contents_served
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
woocommerce_transient_file_contents_served
woocommerce/src/Internal/TransientFiles/TransientFilesEngine.php 537
do_action( 'woocommerce_transient_file_contents_served', $file_name );