Snippets

Visser Labs Override the date format set in %date% filename Tag

Updated by Michael Visser

File functions.php Modified

  • Ignore whitespace
  • Hide word diff
 function custom_woo_ce_filename_tag_date( $date ) {
 
     // Override the date format and pass it back to the Store Exporter Deluxe
-    $date = date( 'dmY', current_time( 'timestamp' ) )
+    $date = date( 'dmY', current_time( 'timestamp' ) );
     return $date;
 
 }
Created by Michael Visser

File functions.php Added

  • Ignore whitespace
  • Hide word diff
+<?php
+function custom_woo_ce_filename_tag_date( $date ) {
+
+    // Override the date format and pass it back to the Store Exporter Deluxe
+    $date = date( 'dmY', current_time( 'timestamp' ) )
+    return $date;
+
+}
+add_filter( 'woo_ce_filename_tag_date', 'custom_woo_ce_filename_tag_date' );
+?>
HTTPS SSH

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