How to edit the new user email notification template

This is done with the register_new_user filter: // Replace the default new user notification remove_action(‘register_new_user’, ‘wp_send_new_user_notifications’); add_action(‘register_new_user’, ‘my_new_user_email’); You have to remove the default action and register the new function: Create a new function that builds and sends the message. function my_new_user_email($user_id, $deprecated = null, $notify = ‘user’) { // create the message $message = … Read more

How to implement my product variations/attributes in my contact form 7 email?

You can try this. First, make sure to start a session. Just add this to your theme’s functions.php: function start_session() { if(!session_id()) { session_start(); } } add_action(‘init’, ‘start_session’, 1); Next, hook into WooCommerce to capture the selected attributes: function capture_selected_attributes($cart_item_key, $product_id, $quantity, $variation_id, $variation, $cart_item_data) { if($variation_id && is_array($variation)) { $_SESSION[‘product_attributes’] = $variation; } } … Read more

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