diff --git a/admin-bar-user-switching.php b/admin-bar-user-switching.php index b30a759..864ca86 100644 --- a/admin-bar-user-switching.php +++ b/admin-bar-user-switching.php @@ -175,7 +175,8 @@ function abus_user_search() { $link = user_switching::maybe_switch_url( $user ); if ( $link ) { $link = add_query_arg( 'redirect_to', apply_filters( 'abus_switch_to_url', $url ), $link ); - echo '
'; + $result_html = ''; + echo apply_filters( 'abus_user_result_element', $result_html, $link, $user ); } } @@ -241,4 +242,4 @@ function abus_styles() { } add_action( 'wp_head', 'abus_styles' ); -add_action( 'admin_head', 'abus_styles' ); \ No newline at end of file +add_action( 'admin_head', 'abus_styles' );