| 1 |
<?php |
| 2 |
/** |
| 3 |
* @package Restrict User Access |
| 4 |
* @author Joachim Jensen <joachim@dev.institute> |
| 5 |
* @license GPLv3 |
| 6 |
* @copyright 2024 by Joachim Jensen |
| 7 |
* |
| 8 |
* Plugin Name: Restrict User Access |
| 9 |
* Plugin URI: https://dev.institute/wordpress-memberships/ |
| 10 |
* Description: Easily restrict content and contexts to provide exclusive access for specific Access Levels. |
| 11 |
* Version: 2.8 |
| 12 |
* Author: DEV Institute |
| 13 |
* Author URI: https://dev.institute |
| 14 |
* Requires at least: 5.8 |
| 15 |
* Requires PHP: 7.2 |
| 16 |
* Text Domain: restrict-user-access |
| 17 |
* Domain Path: /lang/ |
| 18 |
* License: GPLv3 |
| 19 |
* |
| 20 |
* This program is free software: you can redistribute it and/or modify |
| 21 |
* it under the terms of the GNU General Public License as published by |
| 22 |
* the Free Software Foundation, either version 3 of the License, or |
| 23 |
* (at your option) any later version. |
| 24 |
* |
| 25 |
* This program is distributed in the hope that it will be useful, |
| 26 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 27 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 28 |
* GNU General Public License for more details. |
| 29 |
* |
| 30 |
* You should have received a copy of the GNU General Public License |
| 31 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 32 |
*/ |
| 33 |
|
| 34 |
defined('ABSPATH') || exit; |
| 35 |
|
| 36 |
$path = plugin_dir_path(__FILE__); |
| 37 |
require $path . 'src/Autoloader.php'; |
| 38 |
if(!\RestrictUserAccess\Autoloader::init($path)) { |
| 39 |
return; |
| 40 |
} |
| 41 |
|
| 42 |
RUA_App::instance(); //legacy |
| 43 |
rua()->init(); |
| 44 |
|
| 45 |
require $path . 'db_updates.php'; |
| 46 |
|