default_avatar_select
Filters the HTML output of the default avatar list.
Usage
add_filter( 'default_avatar_select', 'wp_kama_default_avatar_select_filter' ); /** * Function for `default_avatar_select` filter-hook. * * @param string $avatar_list HTML markup of the avatar list. * * @return string */ function wp_kama_default_avatar_select_filter( $avatar_list ){ // filter... return $avatar_list; }
- $avatar_list(string)
- HTML markup of the avatar list.
Changelog
Since 2.6.0 | Introduced. |
Where the hook is called
In file: /wp-admin/options-discussion.php
wp-admin/options-discussion.php 360
echo apply_filters( 'default_avatar_select', $avatar_list );