Conditional email recipient based off Shipping Method [closed]

Firstly, get_shipping_method is a function. You seem to be using it as a variable. Secondly $order->get_shipping_method() returns Shipping method label, which you’re trying to compare with id. Now you can either compare Titles, or use $order->get_items( ‘shipping’ ); which returns an array with name, type, method_id, cost and taxes, and use method_id for comparison.

How can I send an email 24 hours after first email?

You can achieve this by many ways. You can use wordpress cron job which has the function like wp_schedule_event(). Go through its documentation and you will get multiple arguments that can be passed through the function. https://codex.wordpress.org/Function_Reference/wp_schedule_event Another way is use wordpress set_transient() and get_transient() function. please check their documenation for better understanding. https://codex.wordpress.org/Function_Reference/set_transient https://codex.wordpress.org/Function_Reference/get_transient … Read more

Post by Email – Shortcode for Language? [closed]

I haven’t found a way to get Jetpack and Polylang to properly work together when it comes to pushing posts by mail into the desired language category. But, i have found a plugin that offers that called Postie. The Polylang addon costs 29$. http://postieplugin.com/

Check if “Send the new user an email about their account” is ticked

I believe I found a solution. Not sure if it is the best solution but at least it serves the purpose: if ( !function_exists(‘wp_new_user_notification’) ) { function wp_new_user_notification( $user_id, $plaintext_pass=”” ) { if($_POST[‘action’] == ‘createuser’){ if($_POST[‘send_user_notification’] == 1){ $user = new WP_User($user_id); $plaintext_pass = $_POST[‘pass1’]; wp_set_password( $plaintext_pass, $user_id ); $user_login = stripslashes($user->user_login); $user_email = stripslashes($user->user_email); … Read more