Skip to content

mc_event_image_alt

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

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

Clone this wiki locally