WordPress at Your Fingertips
function is not described

WC_Admin_Setup_Wizard::run_deferred_actions() public WC 1.0

Deprecated from version 4.6.0. It is no longer supported and can 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.

{} It's a method of the class: WC_Admin_Setup_Wizard{}

No Hooks.

Return

null. Nothing.

Usage

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

Notes

Changelog

Deprecated 4.6.0

Code of WC_Admin_Setup_Wizard::run_deferred_actions() WC 5.9.0

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] );
		}
	}
}