_wp_post_thumbnail_class_filter_remove

The timeline below displays how wordpress function _wp_post_thumbnail_class_filter_remove has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.4

/**
 * Removes the '_wp_post_thumbnail_class_filter' callback from the 'wp_get_attachment_image_attributes'
 * filter hook. Internal use only.
 *
 * @ignore
 * @since 2.9.0
 *
 * @param string[] $attr Array of thumbnail attributes including src, class, alt, title, keyed by attribute name.
 */
function _wp_post_thumbnail_class_filter_remove($attr)
{
    remove_filter('wp_get_attachment_image_attributes', '_wp_post_thumbnail_class_filter');
}

WordPress Version: 4.2

/**
 * Removes the '_wp_post_thumbnail_class_filter' callback from the 'wp_get_attachment_image_attributes'
 * filter hook. Internal use only.
 *
 * @ignore
 * @since 2.9.0
 *
 * @param array $attr Thumbnail attributes including src, class, alt, title.
 */
function _wp_post_thumbnail_class_filter_remove($attr)
{
    remove_filter('wp_get_attachment_image_attributes', '_wp_post_thumbnail_class_filter');
}

WordPress Version: 3.7

/**
 * Removes _wp_post_thumbnail_class_filter from the wp_get_attachment_image_attributes filter
 *
 * @since 2.9.0
 */
function _wp_post_thumbnail_class_filter_remove($attr)
{
    remove_filter('wp_get_attachment_image_attributes', '_wp_post_thumbnail_class_filter');
}