Notify about WP Job Manager listings with WordPress plugin Post Status Notifier

WP Job Manager is a great plugin to manage job listings with WordPress. You can add new jobs from the admin panel or allow your users to post jobs. To see the full list of features, visit the WP Job Manager plugin homepage.

If you want to notify a user who submitted a new job to your site when it got published, our plugin Post Status Notifier can come in handy. You can define custom notification rules for almost any case and with the new version 1.5 you can even layout nice HTML emails in your blog design.

Setting up a “debug notification rule” to track all Post Status transitions

Before we start to configure our notification rules, it is very useful to setup a rule which will match in any job status change, I call it a “debug rule“. This is very easy. Just use the example rule button “The pedantic admin” which will fill all the necessary options to match any post status change (It will set status before to “anything” and status after to “anything”). The only thing you have to change is the Post Type which should be set to “Jobs” of course.

If you now add or edit a job via front end submission form or admin panel you will get log entries and can see exactly what happened. To get all the information about the post you can access from a notification rule, activate the option “Log rule matches” in Post Status Notifier’s options. This will create an extra log entry with a list of all placeholders and their values you can use in notification rules.

wp_job_manager_log_option

Creating a confirmation notification for job submitters

Now let’s see what happens, if we use WP Job Managers Job Submission feature. First the user has to fill the form and click the button “Preview“. If everything is fine, clicking the button “Submit Listing” will finally submit the new job listing.

A look into the “Log” section of Post Status Notifier will show some new log entries. The interesting part is to see the post status transitions. The job listing preview mode created a status transition from “new” to “preview“, submitting the job listing triggered a transition from “preview” to “pending“.

With this information we now can create a notification rule to send a confirmation mail to the submitter to let him know that the new job listing has been saved and will be reviewed. For this rule “Status before” must be set to “Not pending” (which would include both “new” and “preview”) and “Status after” to “Pending Review” (see the screenshot). The recipient should be the “Post author” who in this case is the user who created the new job listing (which is a Custom Post Type). The rest is up to you. You can define a custom subject and mail text or, if you want to send a nice HTML mail with your blog’s design, create a mail template and select it as text to be used.

 

 

Approve job listing and send notification to the submitter

Next step is to approve a pending job and check the log entries again.

wp_job_manager_approve

wp_job_manager_logs3

We can see a post status transition from “pending” to “publish“. With this information we can easily setup another notification rule to let the user know about his published job listing. The example rule “The happy author” already does most of the job for us. Of course we have to set “Post type” to “Jobs“. For “Status before” we can use Post Status Notifier’s custom Post Status “Not published” which matches everything but “published”. “Status after” must be set to “Published” and recipient to “Post author”.

 

Notification for the admin / job listing reviewer about pending job listings

Besides the user notifications, the admin and /or job listing reviewers should be informed about new pending job listings too. The settings for such a rule can be lent from the first rule we created (the user confirmation).  “Status before” “Not pending” and “Status after” “Pending Review” are exactly what we need to notify about new pending listings. Therefore we can use Post Status Notifiers copy rule function in the Rules administration screen. Just hover about confirmation rule an click “Copy”. Then hover the duplicate entry and click “Edit” to adjust the rule to the admin’s need. Change subject and text to something more appropriate for the reviewer and select the recipient(s) who are in charge of reviewing the job listings. You can choose from a variety of recipients options Post Status Notifier offers you. For example you can choose a user role or a custom recipients list (or multiple options).

 

Conclusion

I hope that this blog post illustrates how you can use Post Status Notifer’s flexible rule settings to create the right WP Job Manager notifications for your use case. If you have any questions, please let me know.

Of course Post Status Notifier works with any other kind of WordPress Custom Post Type. To check out all the features, visit Post Status Notifier’s plugin homepage.

You can download the export file of the rules created in this post on Post Status Notifier’s resources page.

Also read: Create notifications for WP Job Manager Applications

Tags:

22
Leave a Reply

avatar
10 Comment threads
12 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
11 Comment authors
AdamNickAlejandroTimoJeremy Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
Felix
Guest
Felix

Hi

thanks for the informative article – do you know if its an easy mod to get it to include the Job-Id in the subject line?

Thanks

trackback

[…] works nice with plugins like WP Job Manager (learn the blog post), Calendarize.it, Crowdfunding by Astoundify (learn the blog post) or Advanced Custom Fields, […]

trackback

[…] works great with plugins like WP Job Manager (read the blog post), Calendarize.it (read the blog post), Crowdfunding by Astoundify (read the blog post), WP User […]

Ahmed Saber
Guest
Ahmed Saber

Awesome tutorial, although I would ask for how to send an email when an application submitted via gravityForms to the Job Owner [Job Owner not always the site admin].

Jelmer
Guest

Awesome plugin. Is there an option to add comment before you reject a post or job listing? This would be great!

Timo
Admin

You could handle it with a custom field. E.g. create a custom field “comment” and use it with placeholder [post_custom_field-comment] in a notification rule for declined posts / job listings.

Jelmer
Guest

Ok, so i figured it out. Maybe useful for everyone who’s looking for this option to.

Add a new rule in PSN and add [post_custom_field-] to the text area. Add a custom field to you’re post or job-listing.

I added a rule where I change the status to concept –> pending preview, so the mail is send. So change the status to concept first and change it back to pending preview after adding the custom field . Now your mail will be send including the text in your custom field .
Works like a jojo 🙂

Jelmer
Guest

thanks Timo

Timo
Admin

It’s my pleasure. I am glad that you like PSN. The new version 1.8 will be released very soon! 😉

Marcelle Combrinck
Guest

Hi Timo,

Can we import the WP Job manager custom fields into the email notification that is sent to the administrator?

Thanks,

Marcelle

Timo
Admin

Sure, every custom field on the job listing is available through PSN placeholders. The best way to find out which placeholders / custom fields are available is to use a debug rule: http://docs.ifeelweb.de/post-status-notifier/rules.html#debug-rule

I hope I was able to help you. If you still have questions, please let me know.

Ed
Guest

Hi Time,

Great stuff here. Just installed the plugin however….and no sign of a ‘job listings’ post type – any ideas?

Really looking forward to getting started here so hoping this is an error on my behalf!

Thanks,

Ed

Ed
Guest

Timo* sorry!

Timo
Admin

Hi Ed,
sorry for my late response. As I already answered to your ticket: They have changed the name of post type “Job listings” to just “Jobs” in one of the recent updates.

Jeremy
Guest

Is the premium version required for the Job Manger admin updates? The status for submitted jobs looks like its “Pending Approval” which is not s status option in the lite version.

Alejandro
Guest

Same happens to me, waiting for the answer 🙂

Timo
Admin

Hi Jeremy,
you have all post statuses available in the lite version. With the current version of WP Job Manager there is no “Pending Approval” status, it is just “Pending”. So the right setting for the rule would be status before “Preview”, status after “Pending”. I just have tested it and it works. Please see this screenshot:comment image:large

Alejandro
Guest

I will check it out, thx!

Alejandro
Guest

I had already set well, but still not working for me.http://www.ticoparqueos.com/post-status-notifier-lite.png

I sent a test email and it worked, but I’m not getting any notification if I create a new listing

Nick
Guest
Nick

Hi there, We are using job manager, but using more the resume manager functionality, listing cvs on the site etc. So could we apply your plugin still? Would be great to over-ride the emails notifications the admin gets. Same status are used for resume listings, pending,publish, on hold etc..

Adam
Guest
Adam

Hello,

is it also possible to sent a notification after a listing get expired?