PluginProbe
Controlled Admin Access / 1.3.7
Controlled Admin Access v1.3.7
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.1.0 1.1.1 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.5.0 1.5.1 1.5.10 All 58 releases
controlled-admin-access / controlled-admin-access.php

controlled-admin-access.php in Controlled Admin Access 1.3.7, at controlled-admin-access.php

81 lines 2.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * The plugin bootstrap file
5 *
6 * This file is read by WordPress to generate the plugin information in the plugin
7 * admin area. This file also includes all of the dependencies used by the plugin,
8 * registers the activation and deactivation functions, and defines a function
9 * that starts the plugin.
10 *
11 * @link https://wpruby.com
12 * @since 1.0.0
13 * @package Controlled_Admin_Access
14 *
15 * @wordpress-plugin
16 * Plugin Name: Controlled Admin Access
17 * Plugin URI: https://wpruby.com/product/controlled-admin-access
18 * Description: Grant a temporary limited admin access to others.
19 * Version: 1.3.7
20 * Author: WPRuby
21 * Author URI: https://wpruby.com
22 * License: GPL-2.0+
23 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
24 * Text Domain: controlled-admin-access
25 * Domain Path: /languages
26 */
27
28 // If this file is called directly, abort.
29 if ( ! defined( 'WPINC' ) ) {
30 die;
31 }
32
33 define('CAA_VERSION', '1.3.7');
34 define('CAA_DIR', plugin_dir_path( __FILE__ ));
35
36 /**
37 * The code that runs during plugin activation.
38 * This action is documented in includes/class-controlled-admin-access-activator.php
39 */
40 function activate_controlled_admin_access() {
41 require_once plugin_dir_path( __FILE__ ) . 'includes/class-controlled-admin-access-activator.php';
42 Controlled_Admin_Access_Activator::activate();
43 }
44
45 /**
46 * The code that runs during plugin deactivation.
47 * This action is documented in includes/class-controlled-admin-access-deactivator.php
48 */
49 function deactivate_controlled_admin_access() {
50 require_once plugin_dir_path( __FILE__ ) . 'includes/class-controlled-admin-access-deactivator.php';
51 Controlled_Admin_Access_Deactivator::deactivate();
52 }
53
54 register_activation_hook( __FILE__, 'activate_controlled_admin_access' );
55 register_deactivation_hook( __FILE__, 'deactivate_controlled_admin_access' );
56
57 /**
58 * The core plugin class that is used to define internationalization,
59 * admin-specific hooks, and public-facing site hooks.
60 */
61 require plugin_dir_path( __FILE__ ) . 'includes/class-controlled-admin-access.php';
62
63 /**
64 * Begins execution of the plugin.
65 *
66 * Since everything within the plugin is registered via hooks,
67 * then kicking off the plugin from this point in the file does
68 * not affect the page life cycle.
69 *
70 * @since 1.0.0
71 */
72 function run_controlled_admin_access() {
73
74 $plugin = new Controlled_Admin_Access();
75 $plugin->run();
76
77 }
78 run_controlled_admin_access();
79
80
81