forked from 10up/safe-redirect-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsafe-redirect-manager.php
More file actions
28 lines (24 loc) · 877 Bytes
/
safe-redirect-manager.php
File metadata and controls
28 lines (24 loc) · 877 Bytes
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
<?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.10.0
* Text Domain: safe-redirect-manager
* Author URI: https://10up.com
* License: GPLv2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
*
* @package safe-redirect-manager
*/
// Load helper functions and classes
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();