Skip to content

friends_suggest_display_name

Alex Kirk edited this page Nov 22, 2024 · 12 revisions

Auto-generated Example

add_filter(
    'friends_suggest_display_name',
    function (
        $display_name_for_url,
        string $url
    ) {
        // Your code here
        return $display_name_for_url;
    },
    10,
    2
);

Parameters

  • $display_name_for_url
  • string $url Other variable names: $friend_url

Files

apply_filters( 'friends_suggest_display_name', User::get_display_name_for_url( $url ), $url )
apply_filters( 'friends_suggest_display_name', User::get_display_name_for_url( $friend_url ), $friend_url )

Hooks

Clone this wiki locally