PluginProbe
Simple Restrict / trunk
Simple Restrict vtrunk
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9
simple-restrict / simple-restrict.php

simple-restrict.php in Simple Restrict trunk, at simple-restrict.php

82 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://wpchill.com
12 * @since 1.0.0
13 * @package Simple_Restrict
14 *
15 * @wordpress-plugin
16 * Plugin Name: Simple Restrict
17 * Description: Restrict pages based on permissions assigned to pages and granted in user profiles.
18 * Version: 1.2.9
19 * Author: WPChill
20 * Author URI: https://wpchill.com
21 * License: GPLv2 or later
22 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
23 * Text Domain: simple-restrict
24 * Tested up to: 7.0
25 * Domain Path: /languages
26 *
27 *
28 * Original Plugin URI: http://www.awakensolutions.com/simple-restrict/
29 * Original Author URI: http://www.awakensolutions.com
30 * Original Author: Awaken Solutions Inc.
31 * Awaken Solutions Inc. has transferred ownership to WPChill on: 10th of February, 2024.
32 */
33
34 // If this file is called directly, abort.
35 if ( ! defined( 'WPINC' ) ) {
36 die;
37 }
38
39 /**
40 * The code that runs during plugin activation.
41 * This action is documented in includes/class-simple-restrict-activator.php
42 */
43 function activate_simple_restrict() {
44 require_once plugin_dir_path( __FILE__ ) . 'includes/class-simple-restrict-activator.php';
45 Simple_Restrict_Activator::activate();
46 }
47
48 /**
49 * The code that runs during plugin deactivation.
50 * This action is documented in includes/class-simple-restrict-deactivator.php
51 */
52 function deactivate_simple_restrict() {
53 require_once plugin_dir_path( __FILE__ ) . 'includes/class-simple-restrict-deactivator.php';
54 Simple_Restrict_Deactivator::deactivate();
55 }
56
57 register_activation_hook( __FILE__, 'activate_simple_restrict' );
58 register_deactivation_hook( __FILE__, 'deactivate_simple_restrict' );
59
60 /**
61 * The core plugin class that is used to define internationalization,
62 * admin-specific hooks, and public-facing site hooks.
63 */
64 require plugin_dir_path( __FILE__ ) . 'includes/class-simple-restrict.php';
65
66 /**
67 * Begins execution of the plugin.
68 *
69 * Since everything within the plugin is registered via hooks,
70 * then kicking off the plugin from this point in the file does
71 * not affect the page life cycle.
72 *
73 * @since 1.0.0
74 */
75 function run_simple_restrict() {
76
77 $plugin = new Simple_Restrict();
78 $plugin->run();
79
80 }
81 run_simple_restrict();
82