• Resolved streamworksaudio

    (@streamworksaudio)


    I was wonder if there is a way to check to see a plugin is using Action Scheduler?

    A few months ago I deactivated WooCommerce, I know that WooCommerce also installs Action Scheduler, but with WooCommerce deactivated is Action Scheduler deactivated as well? If so and there is has been no problems with any other plugins, is it safe to assume that no other plugins are using Action Scheduler?

    If I uninstall WooCommerce using the ‘define( ‘WC_REMOVE_ALL_DATA’, true );’ method the Action Scheduler tables are still there and I am looking for a way to check if it would be safe to manually remove them (if no plugin is using Action Scheduler).

    Cheers

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Barry

    (@barryhughes-1)

    Hi @streamworksaudio—it’s a great question!

    In general, if an active plugin includes Action Scheduler, you will also find that an admin screen can be found at Tools ? Scheduled Actions. So, if that is not present, then it is probable that none of your remaining plugins include Action Scheduler, and it is also probably safe to remove the tables.

    You could also inspect the wp_actionscheduler_actions table and see if any actions are scheduled that are not obviously related to WooCommerce (if the actions are associated with WooCommerce, then the hook is likely to be prefixed with woocommerce_ or wc_).

    If I uninstall WooCommerce using the define( ‘WC_REMOVE_ALL_DATA’, true ); method the Action Scheduler tables are still there

    This is intentional, as it is possible that there are other plugins that also use Action Scheduler—but, currently, it would be challenging for WooCommerce to detect that that is the case (especially if we consider scenarios where another plugin that bundles Action Scheduler has been temporarily deactivated, and so on).

    I hope that answers your question ??

    Thread Starter streamworksaudio

    (@streamworksaudio)

    Thanks Barry,

    This is what I suspected. I had a look at the ‘wp_actionscheduler_actions’ table and the last entry (scheduled hook) was from just before I deactivated WooCommerce and I do not see Tools->Scheduled Actions.

    A support member from one of the plugins we use said they use it, but from my investigations it appears it does not.

    Worst case, am I correct in thinking that if I remove the tables and things go haywire, then I am guessing I can install this plugin on it’s own (not as part of WooCommerce) and those tables will be recreated (if that plugin does in fact require Action Scheduler)?

    Cheers

    Thread Starter streamworksaudio

    (@streamworksaudio)

    Just a follow up. After coming to the conclusion that the plugin does not use Action Scheduler and I ask the support member again, and this time the response is that they use WP Cron. Interesting that I got two different answers ??

    I think it is safe to remove these tables. Thanks for your help!

    Plugin Author Barry

    (@barryhughes-1)

    Awesome!

    (+yep, you could simply re-install and re-activate Action Scheduler and the tables should automatically be recreated.)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to tell if a plugin is using Action Scheduler’ is closed to new replies.