WC_Admin_Notices::add_custom_notice() – Add a custom notice.

You appear to be a bot. Output may be restricted

Description

Add a custom notice.

Usage

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

Parameters

$name
( string ) required – Notice name.
$notice_html
( string ) required – Notice HTML.

Returns

void

Source

File name: woocommerce/includes/admin/class-wc-admin-notices.php
Lines:

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

 View on GitHub View on Trac