Warning: This method has been deprecated.
WC_Admin_Setup_Wizard::install_theme( string $theme_id )
Helper method to queue the background install of a theme.
Description Description
Parameters Parameters
- $theme_id
-
(Required) Theme id used for background install.
Source Source
File: includes/admin/class-wc-admin-setup-wizard.php
762 763 764 765 766 767 768 769 770 771 772 773 | protected function install_theme( $theme_id ) { 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 ), ) ); } |
Changelog Changelog
Version | Description |
---|---|
4.6.0 | Introduced. |