-
Notifications
You must be signed in to change notification settings - Fork 6
/
multisite-robotstxt-manager.php
69 lines (62 loc) · 1.91 KB
/
multisite-robotstxt-manager.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
/**
* Plugin Name: Multisite Robots.txt Manager | MS Robots.txt
* Plugin URI: https://github.com/ChrisWinters/multisite-robotstxt-manager
* Description: A Multisite Network Robots.txt Manager. Quickly manage your Network Websites robots.txt files from a single administration area.
* Tags: robotstxt, robots.txt, robots, robot, spiders, virtual, search, google, seo, plugin, network, wpmu, multisite, technerdia, tribalnerd
* Version: 3.1.0
* License: GNU GPLv3
* Copyright (c) 2017-2024 Chris Winters
* Author: tribalNerd, Chris Winters
* Author URI: https://github.com/ChrisWinters
* Text Domain: multisite-robotstxt-manager
*
* @package WordPress
* @subpackage Plugin
* @author Chris W. <chrisw@null.net>
* @license GNU GPLv3
* @link /LICENSE
*/
namespace MsRobotstxtManager;
if ( false === defined( 'ABSPATH' ) ) {
exit;
}
define( 'MS_ROBOTSTXT_MANAGER_DIR', __DIR__ );
define( 'MS_ROBOTSTXT_MANAGER_FILE', __FILE__ );
define( 'MS_ROBOTSTXT_MANAGER_VERSION', '3.1.0' );
define( 'MS_ROBOTSTXT_MANAGER_PLUGIN_DIR', dirname( __FILE__ ) );
define( 'MS_ROBOTSTXT_MANAGER_PLUGIN_NAME', 'multisite-robotstxt-manager' );
define( 'MS_ROBOTSTXT_MANAGER_SETTING_PREFIX', 'multisite-robotstxt_manager_' );
require_once dirname( __FILE__ ) . '/inc/autoload-classes.php';
/*
* Hooks a function on to a specific action.
* https://developer.wordpress.org/reference/functions/add_action/
*
* Hooks a function on to a specific action.
* https://developer.wordpress.org/reference/functions/add_action/
*/
add_action(
'plugins_loaded',
array(
'MsRobotstxtManager\Translate',
'init',
)
);
add_action(
'plugins_loaded',
array(
'MsRobotstxtManager\MsRobotstxtManager',
'init',
)
);
/*
* Set the activation hook for a plugin.
* https://developer.wordpress.org/reference/functions/register_activation_hook/
*/
register_activation_hook(
__FILE__,
array(
'MsRobotstxtManager\Plugin_Activate',
'init',
)
);