WC_Admin_Notices::output_custom_notices
Output any stored custom notices.
Метод класса: WC_Admin_Notices{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$result = WC_Admin_Notices::output_custom_notices();
Код WC_Admin_Notices::output_custom_notices() WC Admin Notices::output custom notices WC 10.4.3
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 __DIR__ . '/views/html-notice-custom.php';
}
}
}
}
}