• Resolved flamuren

    (@flamuren)


    On my job board that I just started I see that old listings are made “unpublished” but are still there in the system in admin. Is it possible to have them be removed automatically or are they needed to be there so that employers still can find the applicants after the end date?

    Best regards,

    Flamur

Viewing 6 replies - 1 through 6 (of 6 total)
  • @flamuren

    can be achived via this snippet

    // This will make sure expired jobs are deleted after XX days

    add_filter( ‘job_manager_delete_expired_jobs’, ‘__return_true’ );// The default is 30 days, but you can change this with the followingadd_filter( ‘job_manager_delete_expired_jobs_days’, ‘change_job_manager_delete_expired_jobs_days’ );function change_job_manager_delete_expired_jobs_days() {return 30; // change this to the number of days you desired}

    Plugin Support lastsplash (a11n)

    (@lastsplash)

    Hi @flamuren

    The snippet shared above should work. It is available with proper formatting here:

    https://wpjobmanager.com/document/deleting-old-expired-jobs/

    Thread Starter flamuren

    (@flamuren)

    @lastsplash @braehler Thank you both for that ??</img>

    Would it be any downside to delete the jobs this way? Or why is this not a standard thing in the plugin? ??</img>

    Just asking so that I dont set this up and it would effect anything later on or for candidates/employers in any bad way.

    @flamuren,

    There isn’t any downside to this, other than it will automatically be deleting jobs, so if there is a job you wanted to relist you would need to make sure you relist it before it is deleted. The main function of having the jobs be available after they expire is for if the posting becomes available again it is easy to repost the job without having to enter all the details again.

    This is something that just hasn’t been added in to the standard plugin but the way the plugin was developed was to allow it to be easily extendable to add features like this for users that want them.

    If you have any other questions, give us a shout!

    Thread Starter flamuren

    (@flamuren)

    @michaelnutt thank you ?? Would the applications still be available for the company that hires if the job is removed this way?

    I have the WPJM core bundle and uses a job board theme = empolyers have the option to use the recruiting system within this and rating and making notes on the different applications. I dont want these to get lost.

    Hi @flamuren!

    There is an option “Delete applications when a job is deleted” in Applications settings. If enabled, job applications will be deleted when the parent job listing is deleted. Otherwise they will be kept on file and visible in the backend.

    Also, if you have the paid extensions, could you please contact us here:

    https://wpjobmanager.com/support/

    Per www.ads-software.com community guidelines, we are not allowed to support premium plugins (paid extensions) in these forums.

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Is it possible to auto-delete old job listings?’ is closed to new replies.