| 1 |
<?php |
| 2 |
/** |
| 3 |
* The plugin bootstrap file |
| 4 |
* |
| 5 |
* |
| 6 |
* @link https://wordpress.org/plugins/wb-sticky-notes |
| 7 |
* @since 1.0.0 |
| 8 |
* @package Wb_Sticky_Notes |
| 9 |
* |
| 10 |
* @wordpress-plugin |
| 11 |
* Plugin Name: Sticky Notes for WP Dashboard |
| 12 |
* Description: Easily add, manage, and organize sticky notes directly on your WordPress dashboard. Perfect for reminders, to-dos, and team collaboration. |
| 13 |
* Version: 1.2.7 |
| 14 |
* Author: Web Builder 143 |
| 15 |
* Author URI: https://profiles.wordpress.org/webbuilder143/ |
| 16 |
* License: GPL-2.0+ |
| 17 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| 18 |
* Text Domain: wb-sticky-notes |
| 19 |
* Domain Path: /languages |
| 20 |
*/ |
| 21 |
|
| 22 |
// If this file is called directly, abort. |
| 23 |
if ( ! defined( 'WPINC' ) ) { |
| 24 |
die; |
| 25 |
} |
| 26 |
|
| 27 |
/** |
| 28 |
* Currently plugin version. |
| 29 |
*/ |
| 30 |
define('WB_STICKY_NOTES_VERSION','1.2.7'); |
| 31 |
|
| 32 |
define('WB_STN_SETTINGS','WB_STN_SETTINGS'); |
| 33 |
|
| 34 |
define('WB_STN_POST_TYPE','wb-sticky-notes'); |
| 35 |
|
| 36 |
define ('WB_STN_PLUGIN_FILENAME',__FILE__); |
| 37 |
define ('WB_STICKY_PLUGIN_NAME','wb-sticky-notes'); |
| 38 |
define ('WB_STN_PLUGIN_PATH',plugin_dir_path(WB_STN_PLUGIN_FILENAME)); |
| 39 |
define ('WB_STN_PLUGIN_URL',plugin_dir_url(WB_STN_PLUGIN_FILENAME)); |
| 40 |
|
| 41 |
|
| 42 |
/** |
| 43 |
* The code that runs during plugin activation. |
| 44 |
* This action is documented in includes/class-wb-sticky-notes-activator.php |
| 45 |
*/ |
| 46 |
function activate_wb_sticky_notes() { |
| 47 |
require_once plugin_dir_path( __FILE__ ) . 'includes/class-wb-sticky-notes-activator.php'; |
| 48 |
Wb_Sticky_Notes_Activator::activate(); |
| 49 |
} |
| 50 |
|
| 51 |
/** |
| 52 |
* The code that runs during plugin deactivation. |
| 53 |
* This action is documented in includes/class-wb-sticky-notes-deactivator.php |
| 54 |
*/ |
| 55 |
function deactivate_wb_sticky_notes() { |
| 56 |
require_once plugin_dir_path( __FILE__ ) . 'includes/class-wb-sticky-notes-deactivator.php'; |
| 57 |
Wb_Sticky_Notes_Deactivator::deactivate(); |
| 58 |
} |
| 59 |
|
| 60 |
register_activation_hook( __FILE__, 'activate_wb_sticky_notes' ); |
| 61 |
register_deactivation_hook( __FILE__, 'deactivate_wb_sticky_notes' ); |
| 62 |
|
| 63 |
/** |
| 64 |
* The core plugin class that is used to define internationalization, |
| 65 |
* admin-specific hooks, and public-facing site hooks. |
| 66 |
*/ |
| 67 |
require plugin_dir_path( __FILE__ ) . 'includes/class-wb-sticky-notes.php'; |
| 68 |
|
| 69 |
/** |
| 70 |
* Begins execution of the plugin. |
| 71 |
* @since 1.0.0 |
| 72 |
*/ |
| 73 |
function run_wb_sticky_notes() { |
| 74 |
|
| 75 |
$plugin = new Wb_Sticky_Notes(); |
| 76 |
$plugin->run(); |
| 77 |
|
| 78 |
} |
| 79 |
add_action('init', 'run_wb_sticky_notes'); |