forked from 10up/safe-redirect-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsafe-redirect-manager.php
38 lines (33 loc) · 1.06 KB
/
safe-redirect-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
<?php
/**
* Plugin Name: Safe Redirect Manager
* Plugin URI: https://wordpress.org/plugins/safe-redirect-manager
* Description: Easily and safely manage HTTP redirects.
* Author: 10up
* Version: 1.9.2
* Text Domain: safe-redirect-manager
* Domain Path: /lang/
* Author URI: https://10up.com
* License: GPLv2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
*
* @package safe-redirect-manager
*/
/**
* Localize plugin
*
* @since 1.8
*/
function srm_load_textdomain() {
load_plugin_textdomain( 'safe-redirect-manager', false, dirname( __FILE__ ) . '/lang' );
}
add_action( 'plugins_loaded', 'srm_load_textdomain' );
require_once dirname( __FILE__ ) . '/inc/functions.php';
require_once dirname( __FILE__ ) . '/inc/classes/class-srm-post-type.php';
require_once dirname( __FILE__ ) . '/inc/classes/class-srm-redirect.php';
if ( defined( 'WP_CLI' ) && WP_CLI ) {
require_once dirname( __FILE__ ) . '/inc/classes/class-srm-wp-cli.php';
WP_CLI::add_command( 'safe-redirect-manager', 'SRM_WP_CLI' );
}
SRM_Post_Type::factory();
SRM_Redirect::factory();