avatar_defaults

avatar_defaults

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('avatar_defaults') is found 1 times:

  • /wp-admin/options-discussion.php line 336
     * @since 2.6.0
     *
     * @param string[] $avatar_defaults Associative array of default avatars.
     */
    $avatar_defaults = apply_filters( 'avatar_defaults', $avatar_defaults );
    $default         = get_option( 'avatar_default', 'mystery' );
    $avatar_list     = '';
    
    // Force avatars on to display these choices.
    add_filter( 'pre_option_show_avatars', '__return_true', 100 );