WC_Admin_Setup_Wizard::run_deferred_actions()publicWC 1.0

Устарела с версии 4.6.0. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.

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

Метод класса: WC_Admin_Setup_Wizard{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

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

Заметки

Список изменений

Устарела с 4.6.0

Код WC_Admin_Setup_Wizard::run_deferred_actions() WC 8.7.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] );
		}
	}
}