0
votes
0answers
18 views

wp_mail recipient

I am new at this and seeking help, I'm really need a light at the end of the tunnel, so if you can help me, please do it! I will be very grateful! The question is, what do I do to when someone fills ...
0
votes
0answers
9 views

transition_comment_status called when untrashing comments [duplicate]

The author gets two mail when I untrash a comment. I only want to send the "untrash_answer_notification"-mail when untrashing comments. Any ideas? // Send mail to user when their comment has been ...
0
votes
1answer
102 views

send email to all registered users when post expires

I have a function which, when a post is published inside a CPT after three days the page is redirected to another URL/PERMALINK. This is the code: add_action('template_redirect', ...
-1
votes
1answer
161 views

How to hook wp_mail to add a custom email as BCC for each sent email?

Is there a way to hook into the wp_mail function to add a custom email as hidden (BCC) copy to each email sent? If so, how? -edit- It's not like I want to send an email with BCC, I would like to ...
0
votes
2answers
80 views

Trouble using antispambot()

I have a custom field in a theme that contains an email address and was pleased to find antispambot() <p><a href="mailto:<?php antispambot(the_field('queries_e-mail')); ?>"> ...
0
votes
2answers
64 views

Do something when user creates post (that's pending)

How do i do something when a (normal) user creates a post (that is submitted for approval) I currently have: function emailinvestment( $new_status, $old_status, $post_id ) { if ( ...
2
votes
2answers
3k views

Adding a second email address to a completed order in WooCommerce

Before I ask this question, I know there is a (legitimate) hesitation to answer questions here about Woo products since they have their own support and their users should be encouraged to use that. I ...
0
votes
1answer
294 views

Using email_exists() wp function in an ajax request

I'm requesting the wordpress function if (email_exists($email)) { ... } from a file (email_check.php) via ajax. Using this function is causing a server error though. The origin (from an input text ...
0
votes
1answer
143 views

Deprecated function get_user_by_email($email)

I tried to find replacement function for get_user_by_email($email) but no luck. This function I am using to allow user to log in by email address or user id. Is there any replacement function or ...
3
votes
1answer
462 views

Check if post is being published for the first time, or is an already published post being updated

I am building an add-on to an events module that checks for availability, since there wasn't a function for that in that module. Now that I have built the logic, there are three emails I will need to ...
0
votes
2answers
116 views

Welcome Mails based on user role

hope you can help me. users can chose between subscriber and editor role on my website. now, i'd like to send a register welcome mail to EDITORS only (WITH a specific) text. subscribers must not ...
0
votes
1answer
200 views

Use of antispambot with $curauth->email

This is probably pretty simple, but... I want to use the WP function antispambot not on get_the_author_email but on a value in a field I added to User Profile called publicemail. Everything I've ...
3
votes
2answers
4k views

Get user id from email?

I'm working on an email system, and I'm onto the unsubscribing stage. Since most of my users would not know their user ID, I'm asking them to put their email into a text box (definitely preferred, ...