add switch link as meta data
-
Hi,
I am wondering whether it is possible to add the switch to a user link as a meta data to the users profile.
I found the code in the FAQ:if ( method_exists( 'user_switching', 'maybe_switch_url' ) ) { $url = user_switching::maybe_switch_url( $target_user ); if ( $url ) { printf( '<a href="%1$s">Switch to %2$s</a>', esc_url( $url ), esc_html( $target_user->display_name ) ); } }But I don’t know how to use this and add it as user meta data.
I hope you can help me out.Best,
Olga
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘add switch link as meta data’ is closed to new replies.