Skip to content

mc_post_thumbnail_atts

github-actions[bot] edited this page Jun 3, 2026 · 4 revisions

Attributes added to My Calendar event images. Default array( 'class' => 'mc-image' ). See get_the_post_thumbnail() docs at WordPress.org.

Auto-generated Example

add_filter(
   'mc_post_thumbnail_atts',
    function(
        array $atts,
        object $event = null
    ) {
        // Your code here.
        return $atts;
    }
);

Parameters

  • array $atts Array of image attributes.
  • object $event Event object.

Returns

array

Files

apply_filters( 'mc_post_thumbnail_atts', array( 'class' => 'mc-image photo ' . $shape ), $event )
apply_filters( 'mc_post_thumbnail_atts', array( 'class' => 'mc-image' ) )

← All Hooks

Clone this wiki locally