Woocommerce store notice disapeared on 28.x.x update

Hi,

we're having an issue with the Woocommerce store notice functionality. Probably after updating BeTheme, the notice disapeared. Changing theme to storefront works.


The notice appears after adding this piece of code to child functions.php:

add_action( 'mfn_hook_top', 'bt_custom_store_notice', 10 );

function bt_custom_store_notice(){

 if ( 'yes' === get_option( 'woocommerce_demo_store' )

    && $text = get_option( 'woocommerce_demo_store_notice' )

 ) {

  wc_get_template( 'notices/store-notice-content.php' );

  echo '<div class="woocommerce-store-notice-wrapper">';

  echo '<div class="woocommerce-store-notice">' . wp_kses_post( $text ) . '</div>';

  echo '</div>';

 }

}


Could you confirm if it's a bug on your end? Thanks!

Comments

Sign In or Register to comment.