Snippets

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

Created by Michael Visser

File functions.php Added

  • Ignore whitespace
  • Hide word diff
+<?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' );
+?>
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.