PluginProbe
Disable WP Notification / 4.3
Disable WP Notification v4.3
4.3 4.2 4.1 trunk 1.0.3 2.0 2.0.1 2.1 2.1.1 3.0 3.1 3.2 3.3 3.4 4.0
disable-wp-notification / disable-wp-notification.php

disable-wp-notification.php in Disable WP Notification 4.3, at disable-wp-notification.php

76 lines 2.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @link https://sourabhagrawal.com/
4 * @since 1.0.0
5 * @package Disable_Wp_Notification
6 *
7 * @wordpress-plugin
8 * Plugin Name: Disable WP Notification
9 * Plugin URI: https://sourabhagrawal.com/disable-wp-notification
10 * Description: Best wordpress plugin to remove all the admin panel notifications in just one click. Including the theme and plugin update notification.
11 * Version: 4.3
12 * Requires at least: 6.0
13 * Requires PHP: 7.4
14 * Author: Sourabh Agrawal
15 * Author URI: https://sourabhagrawal.com/
16 * License: GPL-2.0+
17 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
18 * Text Domain: disable-wp-notification
19 * Domain Path: /languages
20 */
21
22 // If this file is called directly, abort.
23 if ( ! defined( 'ABSPATH' ) ) {
24 exit;
25 }
26
27 /**
28 * Currently plugin version.
29 */
30 define( 'DISABLE_WP_NOTIFICATION_VERSION', '4.3' );
31 define( 'DISABLE_WP_NOTIFICATION', plugin_basename( __FILE__ ) );
32
33 /**
34 * The code that runs during plugin activation.
35 * This action is documented in includes/class-disable-wp-notification-activator.php
36 */
37 function activate_disable_wp_notification() {
38 require_once plugin_dir_path( __FILE__ ) . 'includes/class-disable-wp-notification-activator.php';
39 Disable_Wp_Notification_Activator::activate();
40 }
41
42 /**
43 * The code that runs during plugin deactivation.
44 * This action is documented in includes/class-disable-wp-notification-deactivator.php
45 */
46 function deactivate_disable_wp_notification() {
47 require_once plugin_dir_path( __FILE__ ) . 'includes/class-disable-wp-notification-deactivator.php';
48 Disable_Wp_Notification_Deactivator::deactivate();
49 }
50
51 register_activation_hook( __FILE__, 'activate_disable_wp_notification' );
52 register_deactivation_hook( __FILE__, 'deactivate_disable_wp_notification' );
53
54 /**
55 * The core plugin class that is used to define internationalization,
56 * admin-specific hooks, and public-facing site hooks.
57 */
58 require plugin_dir_path( __FILE__ ) . 'includes/class-disable-wp-notification.php';
59
60 /**
61 * Begins execution of the plugin.
62 *
63 * Since everything within the plugin is registered via hooks,
64 * then kicking off the plugin from this point in the file does
65 * not affect the page life cycle.
66 *
67 * @since 1.0.0
68 */
69 function run_disable_wp_notification() {
70
71 $plugin = new Disable_Wp_Notification();
72 $plugin->run();
73
74 }
75 run_disable_wp_notification();
76