PluginProbe
WDesignKit – AI Templates, Widget Builder & MCP Workflow for WordPress / 1.0.7
WDesignKit – AI Templates, Widget Builder & MCP Workflow for WordPress v1.0.7
2.6.5 2.6.4 2.6.3 2.6.2 2.6.1 2.6.0 2.5.5 2.5.4 2.5.3 2.5.2 2.5.1 2.5.0 2.4.0 2.3.3 2.3.2 2.3.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 All 127 releases
wdesignkit / includes / admin / notices / class-wdkit-notice-main.php

class-wdkit-notice-main.php in WDesignKit – AI Templates, Widget Builder & MCP Workflow for WordPress 1.0.7, at includes/admin/notices/class-wdkit-notice-main.php

74 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The file that defines the core plugin class
4 *
5 * A class definition that includes attributes and functions used across both the
6 * public-facing side of the site and the admin area.
7 *
8 * @link https://posimyth.com/
9 * @since 1.0.0
10 *
11 * @package Wdesignkit
12 * @subpackage Wdesignkit/includes
13 */
14
15 /**Exit if accessed directly.*/
16 if ( ! defined( 'ABSPATH' ) ) {
17 exit;
18 }
19
20 if ( ! class_exists( 'Wdkit_Notice_Main' ) ) {
21
22 /**
23 * Wdkit_Notice_Main
24 *
25 * @since 1.0.0
26 */
27 class Wdkit_Notice_Main {
28
29 /**
30 * Singleton instance variable.
31 *
32 * @var instance|null The single instance of the class.
33 */
34 private static $instance;
35
36 /**
37 * Singleton instance getter method.
38 *
39 * @since 1.0.0
40 *
41 * @return self The single instance of the class.
42 */
43 public static function get_instance() {
44 if ( ! isset( self::$instance ) ) {
45 self::$instance = new self();
46 }
47
48 return self::$instance;
49 }
50
51 /**
52 * Constructor for the core functionality of the plugin.
53 *
54 * @since 1.0.0
55 * @access public
56 */
57 public function __construct() {
58 self::wdkit_notice_fileload();
59 }
60
61 /**
62 * Loads the file for setting plugin page notices.
63 *
64 * @since 1.0.0
65 * @access public
66 */
67 public function wdkit_notice_fileload() {
68 require_once WDKIT_INCLUDES . 'admin/notices/class-wdkit-plugin-page.php';
69 }
70 }
71
72 Wdkit_Notice_Main::get_instance();
73 }
74