Skip to content

Commit bfb4db3

Browse files
Filter the display name to allow plugin users to change the appearance
1 parent f41d1e5 commit bfb4db3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/Controllers/AdminBar.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function userSearch()
6464
$link = add_query_arg( 'redirect_to', apply_filters( 'abus_switch_to_url', $url ), $link );
6565
$html .= '
6666
<p class="result">
67-
<a href="' . esc_url( $link, $user ) . '">' . $user->display_name . '</a>
67+
<a href="' . esc_url( $link, $user ) . '">' . apply_filters( 'abus_display_name', $user->display_name, $user ) . '</a>
6868
</p>
6969
';
7070
}

0 commit comments

Comments
 (0)