Changeset 1984334
- Timestamp:
- 12/03/2018 10:07:11 AM (7 years ago)
- Location:
- order-emails-log-for-woocommerce/trunk
- Files:
-
- 2 edited
-
email-log.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
order-emails-log-for-woocommerce/trunk/email-log.php
r1821515 r1984334 26 26 // saves order id 27 27 add_action( 'woocommerce_email_order_details', array( &$this, 'email_details' ), 10, 4 ); 28 28 29 // saves order_id for plugin woocommerce-email-center 30 add_filter( 'rp_wcec_send_email_immediately', array( &$this, 'for_email_plugin'), 10, 3 ); 31 add_filter( 'rp_wcec_schedule_email', array( &$this, 'for_email_plugin'), 10, 3 ); 32 33 // saved order id for plugin automatewoo 34 add_filter( 'automatewoo/workflow/mailer', array( &$this, 'for_automatewoo_plugin'), 30, 2 ); 35 29 36 // fires on wp_mail 30 37 add_filter( 'wp_mail', array( &$this, 'log_email' ), PHP_INT_MAX ); 31 38 32 39 } 40 41 // saved order id 42 public function for_automatewoo_plugin( $mailer, $workflow ){ 43 if( isset($workflow->workflow->log->meta_cache['order_id']) ){ 44 $this->order_id = $workflow->workflow->log->meta_cache['order_id']; 45 } 46 return $mailer; 47 } 48 49 // saved order id 50 public function for_email_plugin( $boo, $t, $args ){ 51 if( isset($args['order'] )){ 52 $this->order_id = trim(str_replace('#', '', $args['order']->get_order_number())); 53 } 54 return true; 55 } 33 56 34 57 // saved order id -
order-emails-log-for-woocommerce/trunk/readme.txt
r1604570 r1984334 4 4 Tags: woocommerce, email log, woocommerce email log 5 5 Requires at least: 3.0.1 6 Tested up to: 4. 76 Tested up to: 4.9 7 7 Stable tag: 1.1 8 8 License: GPLv2 or later … … 19 19 Who the email was sent to 20 20 The email subject line 21 22 Supports Automatewoo and Woocommerce Email Center 21 23 22 24 We also have a premium plugin which offers the following additional features:
Note: See TracChangeset
for help on using the changeset viewer.