• Resolved loopforever

    (@loopforever)


    Hello,
    First of all, thank you for the plugin. I would like to say that it is very practical and useful.

    I create a link as follows to use this plugin on a special page where users are listed on the WordPress admin page. However, after clicking on the link, I receive the following warning: “The link you followed has expired. Please try again.”
    So the link is not working. Can you guide me? I wonder where the error is?
    The code is below:

    $user_id = get_post_field('post_author', $post_id);
    $switch_url = wp_nonce_url( add_query_arg( array(
    'action' => 'switch_to_user',
    'user_id' => $user_id ,
    'nr' => 1,
    ), wp_login_url() ), "switch_to_user_{ $user_id }" );

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Switch Page’ is closed to new replies.