PluginProbe
WDesignKit – AI Templates, Widget Builder & MCP Workflow / 2.7.0
WDesignKit – AI Templates, Widget Builder & MCP Workflow v2.7.0
2.7.1 2.7.0 2.6.6 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 All 130 releases
wdesignkit / includes / admin / notices / class-wdkit-notices-remove.php

class-wdkit-notices-remove.php in WDesignKit – AI Templates, Widget Builder & MCP Workflow 2.7.0, at includes/admin/notices/class-wdkit-notices-remove.php

98 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * This is use for Remove Databsh Entry
4 *
5 * @link https://posimyth.com/
6 * @since 1.0.17
7 *
8 * @package Wdesignkit
9 * @subpackage Wdesignkit/includes
10 * */
11
12 /**
13 * Exit if accessed directly.
14 * */
15 if ( ! defined( 'ABSPATH' ) ) {
16 exit;
17 }
18
19 if ( ! class_exists( 'Wdkit_Notices_Remove' ) ) {
20
21 /**
22 * This class used for only load All Notice Files
23 *
24 * @since 1.0.17
25 */
26 class Wdkit_Notices_Remove {
27
28 /**
29 * Instance
30 *
31 * @since 1.0.17
32 * @var instance of the class.
33 */
34 private static $instance = null;
35
36 /**
37 * Instance
38 *
39 * Ensures only one instance of the class is loaded or can be loaded.
40 *
41 * @since 1.0.17
42 * @return instance of the class.
43 */
44 public static function instance() {
45 if ( is_null( self::$instance ) ) {
46 self::$instance = new self();
47 }
48
49 return self::$instance;
50 }
51
52 /**
53 * Constructor
54 *
55 * Perform some compatibility checks to make sure basic requirements are meet.
56 *
57 * wkit_builder .
58 * wkit_settings_panel .
59 * wdkit_rating_banner_start_date .
60 * wkit_onbording_end
61 * wkit_deactivate_widgets .
62 * wdkit_auth_ *** (store dynamic)
63 *
64 * @since 1.0.17
65 */
66 public function __construct() {
67 $this->wdkit_cmsale_notice_dismissed_2025();
68 }
69
70 /**
71 * Delete Onbording Databash entry
72 *
73 * @since 2.1.5
74 */
75 public function wdkit_onbording_end() {
76 $option_value = get_option( 'wkit_onbording_end' );
77
78 if ( false !== $option_value ) {
79 delete_option( 'wkit_onbording_end' );
80 }
81 }
82
83 /**
84 * Delete CMSale Notice Dismissed
85 *
86 * @since 2.1.5
87 */
88 public function wdkit_cmsale_notice_dismissed_2025() {
89 $option_value = get_option( 'wdkit_cmsale_notice_dismissed' );
90 if ( false !== $option_value ) {
91 delete_option( 'wdkit_cmsale_notice_dismissed' );
92 }
93 }
94 }
95
96 Wdkit_Notices_Remove::instance();
97 }
98