PluginProbe
Post Lockdown / 3.0.7
Post Lockdown v3.0.7
trunk 1.0.0 1.0.1 1.1 1.1.1 2.0 2.0.1 2.0.2 2.0.3 2.1 3.0 3.0.1 3.0.13 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 4.0 4.0.2 4.0.3 4.0.4 4.0.5 4.1.0 All 26 releases
post-lockdown / post-lockdown.php

post-lockdown.php in Post Lockdown 3.0.7, at post-lockdown.php

28 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Post Lockdown
4 * Description: Allows admins to protect selected posts and pages so they cannot be trashed or deleted by non-admin users.
5 * Version: 3.0.6
6 * Author: Andy Palmer
7 * Author URI: https://andypalmer.me
8 * License: GPL2
9 * Text Domain: postlockdown.
10 */
11 if (is_admin() || (defined('WP_CLI') && WP_CLI)) {
12 require_once __DIR__ . '/src/PostLockdown/PostLockdown.php';
13 require_once __DIR__ . '/src/PostLockdown/OptionsPage.php';
14 require_once __DIR__ . '/src/PostLockdown/AdminNotice.php';
15 require_once __DIR__ . '/src/PostLockdown/StatusColumn.php';
16 require_once __DIR__ . '/src/PostLockdown/BulkActions.php';
17 require_once __DIR__ . '/src/PostLockdown/WpCli.php';
18
19 global $postlockdown;
20 $postlockdown = new \PostLockdown\PostLockdown(plugin_dir_path(__FILE__), plugin_dir_url(__FILE__));
21
22 register_uninstall_hook(__FILE__, ['PostLockdown', '_uninstall']);
23
24 if (defined('WP_CLI') && WP_CLI) {
25 \WP_CLI::add_command('postlockdown', new \PostLockdown\WpCli($postlockdown));
26 }
27 }
28