WC_Admin_Notices::add_custom_notice( string $name, string $notice_html )

Add a custom notice.


Description Description


Parameters Parameters

$name

(Required) Notice name.

$notice_html

(Required) Notice HTML.


Top ↑

Source Source

File: includes/admin/class-wc-admin-notices.php

	public static function add_custom_notice( $name, $notice_html ) {
		self::add_notice( $name );
		update_option( 'woocommerce_admin_notice_' . $name, wp_kses_post( $notice_html ) );
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.