mc_location_schema - joedolson/my-calendar GitHub Wiki

Filter array used to generate location schema. See https://schema.org/location.

Auto-generated Example

add_filter(
   'mc_location_schema',
    function(
        array $schema,
        object $location
    ) {
        // Your code here.
        return $schema;
    },
    10,
    2
);

Parameters

  • array $schema Schema data for an event venue.
  • object $location My Calendar location object.

Returns

array

Files

apply_filters( 'mc_location_schema', $schema, $location )

← All Hooks