WC_Admin_Setup_Wizard::run_deferred_actionspublicWC 1.0

Deprecated since 4.6.0. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.

Function called after the HTTP request is finished, so it's executed without the client having to wait for it.

Method of the class: WC_Admin_Setup_Wizard{}

No Hooks.

Returns

void. Nothing (null).

Usage

$WC_Admin_Setup_Wizard = new WC_Admin_Setup_Wizard();
$WC_Admin_Setup_Wizard->run_deferred_actions();

Notes

See: WC_Admin_Setup_Wizard::install_plugin
See: WC_Admin_Setup_Wizard::install_theme

Changelog

Deprecated since 4.6.0

WC_Admin_Setup_Wizard::run_deferred_actions() code WC 11.0.1

public function run_deferred_actions() {
	_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
	$this->close_http_connection();
	foreach ( $this->deferred_actions as $action ) {
		$action['func']( ...$action['args'] );

		// Clear the background installation flag if this is a plugin.
		if (
			isset( $action['func'][1] ) &&
			'background_installer' === $action['func'][1] &&
			isset( $action['args'][0] )
		) {
			delete_option( 'woocommerce_setup_background_installing_' . $action['args'][0] );
		}
	}
}