# woo-additional-terms/1.7.3/src/Enhancements/Notices.php

Additional Terms Lite for WooCommerce, version 1.7.3. 55 lines.

- Page: https://pluginprobe.com/plugins/woo-additional-terms/1.7.3/code/src/Enhancements/Notices.php
- Raw: https://pluginprobe.com/plugins/woo-additional-terms/1.7.3/raw/src/Enhancements/Notices.php
- Modified: 2024-04-09T12:06:28+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/woo-additional-terms/1.7.3/code/src/Enhancements/Notices.php#L10-L20`.

```php
<?php
/**
 * The plugin admin notices class.
 *
 * @since 1.0.0
 *
 * @package woo-additional-terms
 */

namespace Woo_Additional_Terms\Enhancements;

/**
 * The plugin notices class.
 */
class Notices {

	/**
	 * The dismiss nonce name.
	 *
	 * @since 1.4.0
	 *
	 * @var string
	 */
	const DISMISS_NONCE_NAME = 'woo-additional-terms-dismiss';

	/**
	 * Setup hooks and filters.
	 *
	 * @since 1.0.0
	 *
	 * @return void
	 */
	public function setup() {

		add_filter( 'admin_notices', array( $this, 'print' ) );
	}

	/**
	 * Display the admin notices.
	 *
	 * @since 1.0.0
	 *
	 * @return void
	 */
	public function print() {

		/**
		 * Fires after the welcome admin notice.
		 *
		 * @since 1.0.0
		 */
		do_action( 'woo_additional_terms_admin_notices' );
	}
}

```
