Send email when a portfolio project is updated
Send email when a portfolio project is updated
Send email when a portfolio project is updated
How to change the default mail when admin approuved an user?
Query to get number of posts last week
You can create usermeta at time of insert user like, i create zip code in my site see this code, $user_id = wp_insert_user( array( ‘user_login’ => $user_email, ‘user_pass’ => wp_generate_password ( 12, false ), ‘first_name’ => ‘khushu’, ‘last_name’ => ‘soni’, ‘user_email’ => $user_email, ‘display_name’ => ‘khushu’ . ‘ ‘ . ‘soni’, ‘nickname’ => ‘khushu’ . … Read more
I did it the long way, with help from a related WordPress.org support thread: add_action(‘comment_post’, ‘notify_author_of_reply’, 10, 2); function notify_author_of_reply($comment_id, $approved){ $comment = get_comment($comment_id); $post_id = $comment->comment_post_ID; $post = get_post($post_id); if($approved && (get_post_type( $post_id )==’ticket’)) { $supervisor = get_userdata( get_post_meta($post->ID, ‘assigned_by’, true) ); $operator = get_userdata( get_post_meta($post->ID, ‘assigned_to’, true) ); $client = get_userdata( $post->post_author ); … Read more
Adding the_content() in custom template email
Nothing is wrong with the code. I just added message body in stripslashes() add_action(‘wp_ajax_mail_link_popup’,’mail_link_popup’); function mail_link_popup() { $headers=”Content-type: text/html;charset=utf-8″; wp_mail($_REQUEST[‘to_email’],$_REQUEST[‘subject’],stripslashes($_REQUEST[‘message_test’]),$headers); } And it’s working now
Finally I figured out the cause and solution to my problem above. When I send email in sub domain such as http://test1.example.com without a custom “From” address in header, the wp_mail() function itself sets the default “From” address as [email protected]. This is invalid so the email was not sent. To solve this, I added a … Read more
wp_mail() headers multipart/alternative
Disable email confirmation new register bbPress [closed]