Redirect …

[insert_php]
ini_set('display_errors', 1);

$current_user = wp_get_current_user();

if ( is_user_logged_in() || 0 == $current_user->ID ) {
echo "";

}
else{
$redirect = 'https://iclassical-foundation.com/not-logged';
wp_redirect($redirect);
exit;

}

[/insert_php]

Redirect … ultima modifica: da iClassical Foundation