PluginProbe
Post Lockdown / 2.0
Post Lockdown v2.0
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 2.0, at post-lockdown.php

22 lines 838 B
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: 2.0
6 * Author: Andy Palmer
7 * Author URI: http://www.andypalmer.me
8 * License: GPL2
9 * Text Domain: postlockdown
10 */
11 if ( is_admin() ) {
12 require_once dirname( __FILE__ ) . '/classes/class.post-lockdown.php';
13 require_once dirname( __FILE__ ) . '/classes/class.post-lockdown-options-page.php';
14 require_once dirname( __FILE__ ) . '/classes/class.post-lockdown-admin-notice.php';
15 require_once dirname( __FILE__ ) . '/classes/class.post-lockdown-status-column.php';
16
17 global $postlockdown;
18 $postlockdown = new PostLockdown( plugin_dir_path( __FILE__ ), plugin_dir_url( __FILE__ ) );
19
20 register_uninstall_hook( __FILE__, array( 'PostLockdown', '_uninstall' ) );
21 }
22