Serial Number from custom table not appear in woocommerce_email_before_order_table action

Looks like I found the issue. It was the fact that ‘woocommerce_payment_complete’ hook was too early BUT the hook ‘woocommerce_pre_payment_complete‘ is called first after payment is made but before order status change and before the email is sent. 🙂 So all I changed in the add_action was change: woocommerce_payment_complete’ TO woocommerce_pre_payment_complete that’s it. And it … Read more

Mail through Cron Execution does not work!

I’d say the first thing to check is whether or not the cron is actually running properly. Whenever I have issues like this, it’s usually with the cron run itself, not with the code it’s calling. Remove all of the code inside your hooked function and replace it with a single line that sets an … Read more

WP Create User – Preventing repeated information

The function wp_create_user calls ‪wp_insert_user‬ which check to see if $username and $email already exists and if so it returns a new WP_Error so you wont have duplicate users in your database and it wont send the new user email more then once, but i’m not sure if that is the best way to do … Read more