How can I pass get_the_author_meta(‘user_email’) through the REST API?

Why I Don’t Have Access to Post’s Information? When you are using Admin-AJAX or the REST API, you will only have access to the current user’s data (by that I mean by default, such as using is_user_logged_in()). To retrieve any other information, you have to pass it as an argument in your AJAX request. WordPress … Read more

Email Bounce Address

That seems to be the configured SMTP server by your hosting. It might be possible to configure this if you have CPANEL included. If that’s the case, take a look at this article. It explains how you can create your own SMTP address and use it for sending e-mails from your website. Alternatively, you can … Read more

Sending emptys emails every day, How stop it?

Do a quick check to make sure one of the required $_POST payment variables is present and not empty. So at the top of your file if(!empty($_POST[‘paymentinfovariable’])) { // put all your current code here // that way POST info is only processed, and email is only sent, // if your required variable has been … Read more

Add custom order meta to Order Completed email

paste the below code your active theme functions.php file add_filter( ‘woocommerce_email_order_meta_fields’,’custom_order_email_order_meta_data’, 10, 3 ); function custom_order_email_order_meta_data( $fields, $sent_to_admin, $order ) { $fields[‘wpcf-purchase-student’] = array( ‘label’ => __( ‘purchase amount’, ‘woocommerce’ ), ‘value’ => get_post_meta( $order->id, ‘wpcf-purchase-student’, true ) ); return $fields; }

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