Automattic\WooCommerce\Admin\Features
TransientNotices::remove
Remove a notice by ID.
Метод класса: TransientNotices{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$result = TransientNotices::remove( $notice_id );
- $notice_id(массив) (обязательный)
- Notice of ID to remove.
Код TransientNotices::remove() TransientNotices::remove WC 10.5.2
public static function remove( $notice_id ) {
$queue = self::get_queue();
unset( $queue[ $notice_id ] );
update_option( self::QUEUE_OPTION, $queue );
}