Đã Hủy

Send post approval notification with "user submitted posts"

Hi, I recently added this code to my functions file:

function authorNotification($post_id) {

$post = get_post($post_id);

$author = get_userdata($post->post_author);

$message = "

Hi ".$author->display_name.",

Your post, ".$post->post_title." has just been published at ".get_permalink( $post_id ).". Well done!

";

wp_mail($author->user_email, "Your article is online", $message);

}

add_action('publish_post', 'authorNotification');

It sends users notification when their posts are approved. However the site I'm working on uses the plugin "[login to view URL]", and does not require registration. When submitting, an email address MAY be included by the user. I need a notification to be sent to that email.

1. You must work on this on your own testing site, I won't be giving out access due to security

2. I'm open to other options to accomplish this

3. Neep done ASAP!

4. Ask questions!!

Kĩ năng: CSS, MySQL, PHP, Thiết kế trang web, WordPress

Xem nhiều hơn: sharepoint 2007 send notification doc submitted, phpbb send post notification, phpbb2 send post notification mail, accesspress anonymous post pro, how to make a website where users can post, user submitted posts custom post type, user submitted posts pro nulled, user submitted posts custom fields, wordpress plugin to allow users to post on front end, wordpress user submitted photo gallery, add post from frontend wordpress without plugin, wordpress user submitted posts, user submitted post wordpress, phpbb email notification user post, user submitted posts, user submitted posts attached files, user submitted posts images error, user submitted url user submitted posts, url link user submitted posts, wordpress user submitted posts url

Về Bên Thuê:
( 27 nhận xét ) Thunder Bay, Canada

ID dự án: #18866778

6 freelancer đang chào giá trung bình $31 cho công việc này

alyaspk

Hi, I am ready to fix your emailing issue and assure 100% satisfaction guarantee. Looking forward to your fruitfully response. Regards Muhammad Alyas

$35 CAD trong 1 ngày
(211 Nhận xét)
7.5
deepaulakh

Hello, Trust you are doing well! I have ample experience CSS, HTML, PHP, Website Design, WordPress. I have checked your requirements exactly. I am the responsible for the working and try to keep the best rela Thêm

$30 CAD trong 2 ngày
(102 Nhận xét)
6.0
nnnmiles

Hello Sir, Wordpress I can start right now. I accept payment to be done only after u are 100% satisfied with the job done. Thanks, Naum

$30 CAD trong 1 ngày
(24 Nhận xét)
5.1
alkajain2906


 Greetings,
Thank you for posting a Job. I WILL DO THIS AS PER YOUR REQUIREMENT AND EXPECTATIONS. With the experience of over 300+web development projects including ANDROID, IOS, WEBSITES, WEB APPLICATIONS AND SOFTW Thêm

$30 CAD trong 10 ngày
(25 Nhận xét)
5.0
hassanmustafa01

Hi, I have read your project description and willing to do this for you in your required time spam with 100% Satisfaction. Kindly message me so we can discuss in detail over chat......

$30 CAD trong 1 ngày
(35 Nhận xét)
4.9
irshadkhan877

Hi, Greeting of the day! Thank's for providing us with an opportunity to bid on your project. I am totally new here but I can assure you that you will be happy with my work & your project. Currently, I am trying to b Thêm

$30 CAD trong 5 ngày
(0 Nhận xét)
0.0