@@ 83-85 (lines=3) @@ | ||
80 | * Reset notices for themes when switched or a new version of WC is installed. |
|
81 | */ |
|
82 | public static function reset_admin_notices() { |
|
83 | if ( ! current_theme_supports( 'woocommerce' ) && ! in_array( get_option( 'template' ), wc_get_core_supported_themes() ) ) { |
|
84 | self::add_notice( 'theme_support' ); |
|
85 | } |
|
86 | ||
87 | $simplify_options = get_option( 'woocommerce_simplify_commerce_settings', array() ); |
|
88 | $location = wc_get_base_location(); |
|
@@ 218-222 (lines=5) @@ | ||
215 | * Show the Theme Check notice. |
|
216 | */ |
|
217 | public static function theme_check_notice() { |
|
218 | if ( ! current_theme_supports( 'woocommerce' ) && ! in_array( get_option( 'template' ), wc_get_core_supported_themes() ) ) { |
|
219 | include( 'views/html-notice-theme-support.php' ); |
|
220 | } else { |
|
221 | self::remove_notice( 'theme_support' ); |
|
222 | } |
|
223 | } |
|
224 | ||
225 | /** |