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.
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 ) ); }