Snippets

Visser Labs Override the default %date% and %time% export filename Tags

Created by Michael Visser
<?php
function custom_woo_ce_filename_tag_date() {

    // Adjust this date variable 
    return date("m-d-Y"); 

}
add_filter( 'woo_ce_filename_tag_date', 'custom_woo_ce_filename_tag_date' );

function custom_woo_ce_filename_tag_time() {

    // Adjust this time variable 
    return date("H_i_s"); 

}
add_filter( 'woo_ce_filename_tag_time', 'custom_woo_ce_filename_tag_time' );
?>

Comments (0)