Cancels all the Pinterest for WooCommerce Heartbeat jobs on plugin disconnect, deactivate and WooCommerce deactivate events.
The wrong behavior is that after disconnecting, you still have some Pinterest for WooCommerce actions running, which require Pinterest connection to function. The same is true for deactivating the plugin.
Detailed test instructions:
Scenario 1. Disconnect plugin.
Connect to Pinterest.
Go to WooCommerce - Status - Scheduled Actions - Pending.
Observe four scheduled actions.
Go to Marketing - Pinterest - Connection.
Disconnect from Pinterest.
Go to WooCommerce - Status - Scheduled Actions - Pending.
Observe that there are no Pinterest for WooCommerce actions scheduled.
Scenario 2. Deactivate plugin.
Connect to Pinterest.
Go to WooCommerce - Status - Scheduled Actions - Pending.
Observe four scheduled actions.
Go to Plugins.
Deactivate the Pinterest for WooCommerce plugin.
Go to WooCommerce - Status - Scheduled Actions - Pending.
Observe that there are no Pinterest for WooCommerce actions scheduled.
Changelog entry
Fix - Cancel hourly and daily plugin jobs on disconnect and deactivate.
Changes proposed in this Pull Request:
Closes #1008 .
Cancels all the Pinterest for WooCommerce Heartbeat jobs on plugin disconnect, deactivate and WooCommerce deactivate events.
The wrong behavior is that after disconnecting, you still have some Pinterest for WooCommerce actions running, which require Pinterest connection to function. The same is true for deactivating the plugin.
Detailed test instructions:
Scenario 1. Disconnect plugin.
Scenario 2. Deactivate plugin.
Changelog entry