Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mainpart

    (@mainpart)

    the further digging leads me to the fact that it is impossible to use $user_ID template redirection becase on the first call when TEMPLATEPATH constant is defined

    define('TEMPLATEPATH', get_template_directory());

    in /wp-includes/default-constants.php no active user is set up.

    Thread Starter mainpart

    (@mainpart)

    the solution is to use:

    $user= wp_get_current_user();
    if ( isset($user->ID) &&  in_array( $user->ID, array( 2,3,4 ) ) )
    		$template = 'classic';

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘cannot get it work with 3.7’ is closed to new replies.