PluginProbe
Additional Terms Lite for WooCommerce / 1.6.2
Additional Terms Lite for WooCommerce v1.6.2
1.7.3 1.7.2.1 trunk 1.0.1 1.0.2 1.1.0 1.2.0 1.2.1 1.2.2 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.6.0 1.6.1 1.6.2 1.6.3 All 35 releases
woo-additional-terms / src / Enhancements / Notices.php

Notices.php in Additional Terms Lite for WooCommerce 1.6.2, at src/Enhancements/Notices.php

57 lines 834 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The plugin admin notices class.
4 *
5 * @author MyPreview (Github: @mahdiyazdani, @gooklani, @mypreview)
6 *
7 * @since 1.0.0
8 *
9 * @package woo-additional-terms
10 */
11
12 namespace Woo_Additional_Terms\Enhancements;
13
14 /**
15 * The plugin notices class.
16 */
17 class Notices {
18
19 /**
20 * The dismiss nonce name.
21 *
22 * @since 1.4.0
23 *
24 * @var string
25 */
26 const DISMISS_NONCE_NAME = 'woo-additional-terms-dismiss';
27
28 /**
29 * Setup hooks and filters.
30 *
31 * @since 1.0.0
32 *
33 * @return void
34 */
35 public function setup() {
36
37 add_filter( 'admin_notices', array( $this, 'print' ) );
38 }
39
40 /**
41 * Display the admin notices.
42 *
43 * @since 1.0.0
44 *
45 * @return void
46 */
47 public function print() {
48
49 /**
50 * Fires after the welcome admin notice.
51 *
52 * @since 1.0.0
53 */
54 do_action( 'woo_additional_terms_admin_notices' );
55 }
56 }
57