WPDev.one
Core Function
View Source on Trac ↗

_wp_post_thumbnail_class_filter()

_wp_post_thumbnail_class_filter( mixed $attr )

Adds a 'wp-post-image' class to post thumbnails. Internal use only.

Parameters 1 required

Name / Type Description
$attr
string[]

Array of thumbnail attributes including src, class, alt, title, keyed by attribute name.

Required

Return Value

(string[])
Modified array of attributes including the new 'wp-post-image' class.

Function Information

Since Version
2.9.0
Source File
wp-includes/media.php
Advertisement