WordPress at Your Fingertips
function is not described

WC_Shortcodes::shop_messages() public WC 1.0

Show messages.

{} It's a method of the class: WC_Shortcodes{}

No Hooks.

Return

String.

Usage

$result = WC_Shortcodes::shop_messages();

Code of WC_Shortcodes::shop_messages() WC 5.9.0

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