WooCommerce::add_recurring_action_wrappers
For actions that may fail at execution time due to missing callbacks, register the recurring action in a wrapper to prevent errors, and load the classes where the callback is added.
Method of the class: WooCommerce{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WooCommerce = new WooCommerce(); $WooCommerce->add_recurring_action_wrappers();
WooCommerce::add_recurring_action_wrappers() WooCommerce::add recurring action wrappers code WC 10.7.0
public function add_recurring_action_wrappers() {
add_action( 'woocommerce_tracker_send_event_wrapper', array( $this, 'add_woocommerce_tracker_send_event_wrapper' ) );
add_action( 'wc_admin_daily_wrapper', array( $this, 'add_wc_admin_daily_wrapper' ) );
add_action( 'generate_category_lookup_table_wrapper', array( $this, 'add_generate_category_lookup_table_wrapper' ) );
add_action( 'woocommerce_cleanup_rate_limits_wrapper', array( $this, 'add_woocommerce_cleanup_rate_limits_wrapper' ) );
}