mc_event_permalink_slug - joedolson/my-calendar GitHub Wiki

Filter the permalink slug for My Calendar events. Return value will be run through sanitize_title().

Auto-generated Example

add_filter(
   'mc_event_permalink_slug',
    function(
        string $title,
        array $data
    ) {
        // Your code here.
        return $title;
    },
    10,
    2
);

Parameters

  • string $title The event title, before sanitizing.
  • array $data Array of event data.

Files

apply_filters( 'mc_event_permalink_slug', $title, $data )
apply_filters( 'mc_event_permalink_slug', $title, $data )

← All Hooks