• Resolved Stefano Lissa

    (@satollo)


    Hi, I saw the new option to pause a hook, very cool. A user stopped the main hook of the Newsletter plugin and I had hard time to find out he/she messed up with that feature… it’s possible, via PHP, to “ask” wp crontrol if a specific hook has been paused?

    So I can show a warning… since I suggest to every user to install wp crontrol I expect someone else to mess up with the “pause” feature. ??

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Yes it’s possible. Paused events are stored in the wp_crontrol_paused option in the database, so you can use get_option('wp_crontrol_paused') to fetch the list. They’re stored as an associative array where each key is the cron hook and each value is always true.

    Does this work for you? I could add a wrapper function around this if necessary.

    Thread Starter Stefano Lissa

    (@satollo)

    Yes, it’s enough! Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.