PluginProbe
Disable WP Notification / 3.4
Disable WP Notification v3.4
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 3.4, at disable-wp-notification.php

74 lines 2.3 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: 3.4
12 * Author: Sourabh Agrawal
13 * Author URI: https://sourabhagrawal.com/
14 * License: GPL-2.0+
15 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
16 * Text Domain: disable-wp-notification
17 * Domain Path: /languages
18 */
19
20 // If this file is called directly, abort.
21 if ( ! defined( 'ABSPATH' ) ) {
22 exit;
23 }
24
25 /**
26 * Currently plugin version.
27 */
28 define( 'DISABLE_WP_NOTIFICATION_VERSION', '3.4' );
29 define( 'DISABLE_WP_NOTIFICATION', plugin_basename( __FILE__ ) );
30
31 /**
32 * The code that runs during plugin activation.
33 * This action is documented in includes/class-disable-wp-notification-activator.php
34 */
35 function activate_disable_wp_notification() {
36 require_once plugin_dir_path( __FILE__ ) . 'includes/class-disable-wp-notification-activator.php';
37 Disable_Wp_Notification_Activator::activate();
38 }
39
40 /**
41 * The code that runs during plugin deactivation.
42 * This action is documented in includes/class-disable-wp-notification-deactivator.php
43 */
44 function deactivate_disable_wp_notification() {
45 require_once plugin_dir_path( __FILE__ ) . 'includes/class-disable-wp-notification-deactivator.php';
46 Disable_Wp_Notification_Deactivator::deactivate();
47 }
48
49 register_activation_hook( __FILE__, 'activate_disable_wp_notification' );
50 register_deactivation_hook( __FILE__, 'deactivate_disable_wp_notification' );
51
52 /**
53 * The core plugin class that is used to define internationalization,
54 * admin-specific hooks, and public-facing site hooks.
55 */
56 require plugin_dir_path( __FILE__ ) . 'includes/class-disable-wp-notification.php';
57
58 /**
59 * Begins execution of the plugin.
60 *
61 * Since everything within the plugin is registered via hooks,
62 * then kicking off the plugin from this point in the file does
63 * not affect the page life cycle.
64 *
65 * @since 1.0.0
66 */
67 function run_disable_wp_notification() {
68
69 $plugin = new Disable_Wp_Notification();
70 $plugin->run();
71
72 }
73 run_disable_wp_notification();
74