mirror of
https://github.com/woocommerce/storefront.git
synced 2025-08-21 04:11:59 +08:00
Remove nux notice if coming from WC wizard
This commit is contained in:
parent
7e313745d9
commit
c163f8a3af
1 changed files with 6 additions and 0 deletions
|
@ -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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue