Filter hook 'default_avatar_select'

in WP Core File wp-admin/options-discussion.php at line 347

View Source

default_avatar_select

Filter Hook
Description
Filters the HTML output of the default avatar list.

Hook Information

File Location wp-admin/options-discussion.php View on GitHub
Hook Type Filter
Line Number 347

Hook Parameters

Type Name Description
string $avatar_list HTML markup of the avatar list.

Usage Examples

Basic Usage
<?php
// Hook into default_avatar_select
add_filter('default_avatar_select', 'my_custom_filter', 10, 1);

function my_custom_filter($avatar_list) {
    // Your custom filtering logic here
    return $avatar_list;
}

Source Code Context

wp-admin/options-discussion.php:347 - How this hook is used in WordPress core
<?php
 342   *
 343   * @since 2.6.0
 344   *
 345   * @param string $avatar_list HTML markup of the avatar list.
 346   */
 347  echo apply_filters( 'default_avatar_select', $avatar_list );
 348  ?>
 349  
 350  </fieldset></td>
 351  </tr>
 352  <?php do_settings_fields( 'discussion', 'avatars' ); ?>

PHP Documentation

<?php
/**
 * Filters the HTML output of the default avatar list.
 *
 * @since 2.6.0
 *
 * @param string $avatar_list HTML markup of the avatar list.
 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-admin/options-discussion.php
Related Hooks

Related hooks will be displayed here in future updates.