wsoe_file_created

The WooCommerce Simply Order Export wsoe file created hook.

Description

do_action( 'wsoe_file_created', (unknown) $post_start_date, (unknown) $post_end_date, (string) $new_filename, (unknown) $csv_file ); 

Parameters (4)

0. $post_start_date (unknown)
The post start date.
1. $post_end_date (unknown)
The post end date.
2. $new_filename (string)
The new filename.
3. $csv_file (unknown)
The csv file.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'wsoe_file_created', $post_start_date, $post_end_date, $new_filename, $csv_file ); 
The following example is for adding a hook callback.
  1. // define the wsoe_file_created callback 
  2. function action_wsoe_file_created( $post_start_date, $post_end_date, $new_filename, $csv_file ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'wsoe_file_created', 'action_wsoe_file_created', 10, 4 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'wsoe_file_created', 'action_wsoe_file_created', 10, 4 ); 

Defined (1)

The action is defined in the following location(s).

/classes/class-order-export-process.php  
  1. do_action( 'wsoe_file_created', $_POST['start_date'], $_POST['end_date'], $new_filename, $csv_file );