mc_event_image_alt - joedolson/my-calendar GitHub Wiki

Customize alt attribute for an event featured image that is not attached to a post.

Auto-generated Example

add_filter(
   'mc_event_image_alt',
    function(
        string $alt,
        object $event
    ) {
        // Your code here.
        return $alt;
    },
    10,
    2
);

Parameters

  • string $alt Empty string or user submitted alt attribute.
  • object $event Event object.

Returns

string

Files

apply_filters( 'mc_event_image_alt', $alt, $event )

← All Hooks