RemoteInboxNotificationsEngine

Remote Inbox Notifications engine.


Description Description

This goes through the specs and runs (creates admin notes) for those specs that are able to be triggered.


Source Source

File: packages/woocommerce-admin/src/RemoteInboxNotifications/RemoteInboxNotificationsEngine.php


			

Top ↑

Methods Methods

  • get_stored_state — Gets the stored state option, and does the initial set up if it doesn't already exist.
  • init — Initialize the engine.
  • on_admin_init — Init is continued via admin_init so that WC is loaded when the product query is used, otherwise the query generates a "0 = 1" in the WHERE condition and thus doesn't return any results.
  • run — Go through the specs and run them.
  • run_on_deactivated_plugin — The deactivated_plugin hook happens before the option is updated (https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/plugin.php#L826) so this captures the deactivated plugin path and pushes it into the PluginsProvider.
  • run_on_woocommerce_admin_updated — Set an option indicating that WooCommerce Admin has just been updated, run the specs, then clear that option. This lets the WooCommerceAdminUpdatedRuleProcessor trigger on WCA update.
  • update_profile_option — This is triggered when the profile option is updated and if the profiler is being completed, triggers a run of the engine.
  • update_stored_state — Update the stored state option.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.