Warning: This method has been deprecated.
WC_Admin_Setup_Wizard::should_show_theme()
The theme “extra” should only be shown if the current user can modify themes and the store doesn’t already have a WooCommerce theme.
Description Description
Return Return
(boolean)
Source Source
File: includes/admin/class-wc-admin-setup-wizard.php
protected function should_show_theme() { $support_woocommerce = current_theme_supports( 'woocommerce' ) && ! wc_is_wp_default_theme_active(); return ( current_user_can( 'install_themes' ) && current_user_can( 'switch_themes' ) && ! is_multisite() && ! $support_woocommerce ); }
Changelog Changelog
Version | Description |
---|---|
4.6.0 | Introduced. |