-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblocked.php
31 lines (25 loc) · 954 Bytes
/
blocked.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
/**
* @package BlockedWP
* @version 0.8.1
*/
/*
Plugin Name: Blocked-WP
Plugin URI: https://www.blocked.org.uk/wp-plugin/
Description: A plugin that adds UK ISP parental control monitoring to the Wordpress Admin panel.
Author: Open Rights Group
Version: 0.8.1
Author URI: https://www.openrightsgroup.org/
*/
// Make sure we don't expose any info if called directly
if ( !function_exists( 'add_action' ) ) {
echo 'Hi there! I\'m just a plugin, not much I can do when called directly.';
exit;
}
define( 'BLOCKED_WP_VERSION', '0.8.1' );
define( 'BLOCKED_WP__MINIMUM_WP_VERSION', '4.0' );
define( 'BLOCKED_WP__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
require_once( BLOCKED_WP__PLUGIN_DIR . 'class.blocked.php' );
add_action( 'init', array( 'BlockedWP', 'init' ) );
register_activation_hook( __FILE__, array( 'BlockedWP', 'plugin_activation' ) );
register_deactivation_hook( __FILE__, array( 'BlockedWP', 'plugin_deactivation' ) );