• Resolved ELAN42///

    (@nokao)


    Hello,
    Sometimes I have to work on themes were the “switch off” links cannot be reached by the impersonated user. Is there any URL I can use to force it? Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    There isn’t a specific URL because it differs for each user, but you can use the following PHP to get the URL:

    $url = user_switching::switch_off_url( wp_get_current_user() );

    Hi,

    I too am having the same issue. Where can I run the above PHP?

    thanks

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    This PHP returns the URL needed to switch off. Where you use it depends entirely on how your theme is structured. I recommend asking your theme author if you’re not sure.

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