Once expired, after 30 days the job listing will be deleted.
Is there any way to not delete the job post but just to remove from the listing? So that way employers could repost it if needed.
They have 30 days to relist, but to disable it entirely use this in theme functions.php:
add_filter( 'job_manager_delete_expired_jobs', '__return_false' );
Just to make sure I understand this right. By adding this snippet that you provided will prevent from the system to remove the expired jobs but still has 30 days expiration and when it passes 30 days, it would be not visible to public until it is relisted? If not relisted, it would remain to be in the dashboard until the employer manually remove the job post itself.
Also, if employers only paid for one job post and it expires in 30 days– after that, they would be able to see their expird job list but would not be able to repost it until they pay another 30 days, right?
Just to make sure I understand this right. By adding this snippet that you provided will prevent from the system to remove the expired jobs but still has 30 days expiration and when it passes 30 days, it would be not visible to public until it is relisted? If not relisted, it would remain to be in the dashboard until the employer manually remove the job post itself.
Correct.
Also, if employers only paid for one job post and it expires in 30 days– after that, they would be able to see their expird job list but would not be able to repost it until they pay another 30 days, right?
They would need to repost and pay again, via their job dashboard.
I apologize but can you please give me more guidance on implementing this? Do I go into ‘edit plugin’ on the wp-job-manager/wp-job-manager-functions.php page? It’s currently listed as ‘inactive’ for me.
If so, will this setting override as soon as I update the plugin?
We’re not dealing with paid listings… this is just for our in-house job postings. We want all postings always available (not expiring) as it’s easiest to ‘duplicate’ jobs instead of creating from scratch (we have lots of different types of positions). If they expire after a few months, we lose that option.
Your help is appreciated, as always. Thanks!
creeeg theme functions.php – do not edit the plugin itself.
creeeg theme functions.php – do not edit the plugin itself.
Thanks Mike. I’ve added this code there. When the theme updates, does the functions.php go back to its default? Just wondering if this is a permanent solution. Thanks again.
Yes – using a child theme would be ideal to keep it upgrade safe.