WordPress at Your Fingertips
function is not described

WC_Admin_Setup_Wizard::install_theme() protected 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.

Helper method to queue the background install of a theme.

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

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->install_theme( $theme_id );
$theme_id(string) (required)
Theme id used for background install.

Changelog

Deprecated 4.6.0

Code of WC_Admin_Setup_Wizard::install_theme() WC 5.9.0

protected function install_theme( $theme_id ) {
	_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
	if ( empty( $this->deferred_actions ) ) {
		add_action( 'shutdown', array( $this, 'run_deferred_actions' ) );
	}
	array_push(
		$this->deferred_actions,
		array(
			'func' => array( 'WC_Install', 'theme_background_installer' ),
			'args' => array( $theme_id ),
		)
	);
}