Warning: This method has been deprecated. Use WC_Admin_Setup_Wizard::install_plugin() instead.
WC_Admin_Setup_Wizard::run_deferred_actions()
Function called after the HTTP request is finished, so it’s executed without the client having to wait for it.
Description Description
See also See also
Source Source
File: includes/admin/class-wc-admin-setup-wizard.php
public function run_deferred_actions() {
$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] );
}
}
}
Changelog Changelog
| Version | Description |
|---|---|
| 4.6.0 | Introduced. |