apply_filters('wpstagerintegration_event_structured_data', array $event_schema, array $event): array
apply_filters('wpstagerintegration_event_structured_data', array $event_schema, array $event): arrayDescription
Filters the event structured data.
This filter hook lets you modify the Event Schema / structured data before it is output on the page. If an empty array is returned, no structured data will be output. If you wish to disable the structured data output, you can use the wpstagerintegration_output_structured_data filter hook.
Parameters:
| Parameter | Type | Description |
|---|---|---|
$event_schema | array | The event structured data. |
$event | array | The raw Stager event data. |
Returns:
array The filtered event structured data.
Information
| File | class-event.php line 1720 |
|---|---|
| See also |
|
Full Code
/**
* Filters the event structured data.
*
* This filter hook lets you modify the Event Schema / structured data before it is output on the page. If an empty array is returned, no structured data will be output.
* If you wish to disable the structured data output, you can use the <code>wpstagerintegration_output_structured_data</code> filter hook.
*
* @param array $event_schema The event structured data.
* @param array $event The raw Stager event data.
*
* @return array The filtered event structured data.
*
* @see "wpstagerintegration_output_structured_data" filter hook
*/
$event_schema = (array) apply_filters( 'wpstagerintegration_event_structured_data', $event_schema, $event )💡 If you ever get stuck or have a question, please check our FAQs, our Free Integration Service, our paid Full Integration Service, or reach out to us!

Get WP Stager Integration
🎁 Limited offer: Use code WELCOME26 to get your first month for free!

