wp siteye giriş yapanları admin paneli yerine anasayfaya nasıl yönlendiririz ? wp login.php de bunlar olabilir sanırım ama denedim yapamadım.
Alıntı
if ( isset( $_REQUEST['redirect_to'] ) ) {
$redirect_to = $_REQUEST['redirect_to'];
// Redirect to https if user wants ssl
if ( $secure_cookie && false !== strpos($redirect_to, 'wp-admin') )
$redirect_to = preg_replace('|^
http://|', 'https://', $redirect_to);
} else {
$redirect_to = admin_url();
}
Alıntı
if ( !is_wp_error($user) ) {
// If the user can't edit posts, send them to their profile.
if ( !$user->has_cap('edit_posts') && ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' || $redirect_to == admin_url() ) )
$redirect_to = admin_url('profile.php');
wp_safe_redirect($redirect_to);
exit();