Skip to content

mc_gcal_location

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

Filter location parameter added to Google Calendar link. Default &location=$location. Return value needs to be URL encoded.

Auto-generated Example

add_filter(
   'mc_gcal_location',
    function(
        string $param,
        string $location
    ) {
        // Your code here.
        return $param;
    },
    10,
    2
);

Parameters

  • string $param Encoded parameter.
  • string $location Unencoded original stringified location..

Returns

string Encoded parameter.

Files

apply_filters( 'mc_gcal_location', '&location=' . urlencode( trim( $location ) ), $location )

← All Hooks

Clone this wiki locally