WordPress at Your Fingertips
function is not described

WC_Admin_Notices::output_custom_notices() public WC 1.0

Output any stored custom notices.

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

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Admin_Notices::output_custom_notices();

Code of WC_Admin_Notices::output_custom_notices() WC 5.9.0

public static function output_custom_notices() {
	$notices = self::get_notices();

	if ( ! empty( $notices ) ) {
		foreach ( $notices as $notice ) {
			if ( empty( self::$core_notices[ $notice ] ) ) {
				$notice_html = get_option( 'woocommerce_admin_notice_' . $notice );

				if ( $notice_html ) {
					include dirname( __FILE__ ) . '/views/html-notice-custom.php';
				}
			}
		}
	}
}