Switch back to admin reload page
-
Hi, im using this code from your faq to display a switch back to admin link on front end:
if ( method_exists( 'user_switching', 'get_old_user' ) ) { $old_user = user_switching::get_old_user(); if ( $old_user ) { printf( '<a href="%1$s">Switch back to %2$s</a>', esc_url( user_switching::switch_back_url( $old_user ) ), esc_html( $old_user->display_name ) ); } }
But this redirect also to user page on backend is it possible istead to only reload the page? thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Switch back to admin reload page’ is closed to new replies.