avatar_defaults

avatar_defaults

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('avatar_defaults') is found 1 times:

  • /wp-admin/options-discussion.php line 323
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    * @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 );