Block to accept and send email to specific domains

strpos will return 0 for a positive match at the start of a string, so your condition != false will evaluate as false – in other words… $email_domain = ‘b-mail.online’; if ( strpos( $email_domain, ‘b-mail.online’ ) != false ) { // Will never reach here } …this is because != is known as a loose … Read more

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)