WC_Admin_Setup_Wizard::should_show_wc_admin
Deprecated since 4.6.0. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.
Should we show the WooCommerce Admin install option? True only if the user can install plugins, and is running the correct version of WordPress.
Method of the class: WC_Admin_Setup_Wizard{}
No Hooks.
Returns
boolean.
Usage
// protected - for code of main (parent) or child class $result = $this->should_show_wc_admin();
Notes
| See: WC_Admin_Setup_Wizard::$wc_admin_plugin_minimum_wordpress_version |
Changelog
| Deprecated since | 4.6.0 |
WC_Admin_Setup_Wizard::should_show_wc_admin() WC Admin Setup Wizard::should show wc admin code WC 11.0.1
protected function should_show_wc_admin() {
_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
$wordpress_minimum_met = version_compare( get_bloginfo( 'version' ), $this->wc_admin_plugin_minimum_wordpress_version, '>=' );
return current_user_can( 'install_plugins' ) && $wordpress_minimum_met && ! $this->is_wc_admin_active();
}