Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Plugin Name: z basic plugin
- Description: testing woo order status completed
- */
- function wootest_log () {
- global $woocommerce;
- $woocommerce->log->add( 'paypal', 'user is being added to database');
- }
- add_action( 'woocommerce_order_status_completed', 'wootest_log', 10, 1);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement