forked from wp-plugins/more-privacy-options
-
Notifications
You must be signed in to change notification settings - Fork 4
/
ds_wp3_private_blog.php
executable file
·53 lines (49 loc) · 1.82 KB
/
ds_wp3_private_blog.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/**
* More Privacy Options
*
* Add more privacy(visibility) options to a WordPress Multisite Network.
*
* @package WordPress
* @subpackage More-privacy-options
*
* Plugin Name: More Privacy Options
* Plugin URI: http://wordpress.org/extend/plugins/more-privacy-options/
* Version: 4.6
* Description: Add more privacy (or visibility) options to a WordPress Multisite Network. Settings->Reading->Visibility: Network Users, Blog Members, or Admins Only. Network Settings->Network Visibility Selector: All Blogs Visible to Network Users Only or Visibility managed per blog as default.
* Author: D. Sader
* Author URI: http://dsader.snowotherway.org/
* Text Domain: more-privacy-options
* Requires at least: 5.9.0
* Tested up to: 6.4.2
* Domain Path: /languages
* Network: true
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Load plugin class files.
require_once( 'includes/class-ds-more-privacy-options.php' );
require_once( 'includes/class-ds-more-privacy-hooks.php' );
/**
* Returns the main instance of Ds_More_Privacy_Options to prevent the need to use globals.
* There should be only a single instance of the class.
*
* @since 1.0.0
* @return Ds_More_Privacy_Options
*/
function more_privacy_options() {
$instance = Ds_More_Privacy_Options::instance( __FILE__, '1.0.0' );
return $instance;
}
more_privacy_options();