WordPress.org

Forums

WP Job Manager
[resolved] Delete Filled jobs (2 posts)

  1. uklightpainter
    Member
    Posted 9 months ago #

    Hi,

    I'm using WP All import to import an XML field of my jobs in. I'm using a number of 0 to show the jobs as not being filled and a 1 to show that they have been filled.

    Now I've used the settings to show that filled jobs get hidden, but how can I set the jobs to be deleted as well (once they have been filled)?

    Is this possible?

    https://wordpress.org/plugins/wp-job-manager/

  2. Mike Jolley
    Member
    Plugin Author

    Posted 9 months ago #

    You'd need a function which queries filled jobs (get_posts() would work), and have that running periodically to clear filled jobs from your database. By default, filled jobs are left to expire and be deleted naturally.

    WP functions you'll need:

    http://codex.wordpress.org/Function_Reference/wp_delete_post
    http://codex.wordpress.org/Template_Tags/get_posts
    http://codex.wordpress.org/Function_Reference/wp_schedule_event

Reply

You must log in to post.

About this Plugin

  • WP Job Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.