WC_Shortcodes::shop_messages()public staticWC 1.0

Show messages.

Method of the class: WC_Shortcodes{}

No Hooks.

Return

String.

Usage

$result = WC_Shortcodes::shop_messages();

WC_Shortcodes::shop_messages() code WC 9.0.1

public static function shop_messages() {
	if ( ! function_exists( 'wc_print_notices' ) ) {
		return '';
	}
	return '<div class="woocommerce">' . wc_print_notices( true ) . '</div>';
}