Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'woocommerce_order_status_completed', function( $order_id ){
- if( class_exists( 'WP_Papertrail_API' ) ){
- WP_Papertrail_API::log( [ 'order-id' => $order_id ], 'new_order' );
- }
- return $order_id;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement