Correction
-
The way wordpress use to detect what page is on is $pagenow
// If in admin if (is_admin()) { // Get the current page global $pagenow; // If current page is profile.php if ($pagenow == 'profile.php') { // Get current user global $current_user; // Define url of the website $blogurl = get_bloginfo('url'); // Prépare the redirect $redirect = 'location: ' . $blogurl . '/members/' . $current_user->user_login . '/profile/'; // Redirect to profile in the front header($redirect); } }
https://www.ads-software.com/plugins/erocks-dashboard-lockdown/
- The topic ‘Correction’ is closed to new replies.