WordPress at Your Fingertips
function is not described

woocommerce_demo_store() WC 1.0

Adds a demo store banner to the site if enabled.

Hooks from the function
Return

null. Nothing.

Usage

woocommerce_demo_store();

Code of woocommerce_demo_store() WC 5.6.0

function woocommerce_demo_store() {
	if ( ! is_store_notice_showing() ) {
		return;
	}

	$notice = get_option( 'woocommerce_demo_store_notice' );

	if ( empty( $notice ) ) {
		$notice = __( 'This is a demo store for testing purposes — no orders shall be fulfilled.', 'woocommerce' );
	}

	$notice_id = md5( $notice );

	// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
	echo apply_filters( 'woocommerce_demo_store', '<p class="woocommerce-store-notice demo_store" data-notice-id="' . esc_attr( $notice_id ) . '" style="display:none;">' . wp_kses_post( $notice ) . ' <a href="#" class="woocommerce-store-notice__dismiss-link">' . esc_html__( 'Dismiss', 'woocommerce' ) . '</a></p>', $notice );
}