PluginProbe ʕ •ᴥ•ʔ
After Login Redirect / trunk
After Login Redirect vtrunk
trunk 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5
wp-after-login-redirect-advanced / wp-login-redirect-advanced.php
wp-after-login-redirect-advanced Last commit date
admin 1 year ago includes 4 years ago public 4 years ago readme.txt 1 month ago wp-login-redirect-advanced.php 1 year ago
wp-login-redirect-advanced.php
52 lines
1 <?php
2 /*
3 Plugin Name: After Login Redirect
4 Plugin URI : https://wordpress.org/plugins/wp-after-login-redirect-advanced/
5 Description: Redirect User After Successfully Logged in To Any Page You Want Easily. Filter By User ID, Username, User Email & User Role.
6 Version: 1.0.5
7 Author: Sajjad Hossain Sagor
8 Author URI: https://profiles.wordpress.org/sajjad67
9 Text Domain: wp-after-login-redirect-advanced
10
11 License: GPL2
12 This WordPress Plugin is free software: you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by
14 the Free Software Foundation, either version 2 of the License, or
15 any later version.
16
17 This free software is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
21
22 You should have received a copy of the GNU General Public License
23 along with this software. If not, see http://www.gnu.org/licenses/gpl-2.0.html.
24 */
25
26 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
27
28 // ---------------------------------------------------------
29 // Define Plugin Folders Path
30 // ---------------------------------------------------------
31 define( "WPLRA_PLUGIN_PATH", plugin_dir_path( __FILE__ ) );
32
33 define( "WPLRA_PLUGIN_URL", plugin_dir_url( __FILE__ ) );
34
35 define( "WPLRA_TEMPLATE_PATH", plugin_dir_path( __FILE__ ) . "/includes/templates/" );
36
37 add_action( "init", "wplra_add_plugin_core_file" );
38
39 function wplra_add_plugin_core_file()
40 {
41 if( current_user_can( 'administrator' ) )
42 {
43 require_once WPLRA_PLUGIN_PATH . 'includes/enqueue.php';
44
45 require_once WPLRA_PLUGIN_PATH . 'includes/functions.php';
46
47 require_once WPLRA_PLUGIN_PATH . 'includes/dashboard.php';
48 }
49
50 require_once WPLRA_PLUGIN_PATH . 'public/redirect.php';
51 }
52