Remove nux notice if coming from WC wizard

This commit is contained in:
Tiago Noronha 2018-04-03 13:04:33 +01:00
parent 7e313745d9
commit c163f8a3af

View file

@ -63,9 +63,15 @@ if ( ! class_exists( 'Storefront_NUX_Admin' ) ) :
*/
public function admin_notices() {
global $pagenow;
if ( true === (bool) get_option( 'storefront_nux_dismissed' ) ) {
return;
}
// Coming from the WooCommerce Wizard?
if ( wp_get_referer() && 'index.php?page=wc-setup&step=next_steps' === basename( wp_get_referer() ) ) {
return;
}
?>
<div class="notice notice-info sf-notice-nux is-dismissible">