gatherpress_venue_post_type

Last updated July 11, 2026, Version 0.34

Filters the post type used as the venue.

Auto-generated Example

add_filter(
   'gatherpress_venue_post_type',
    function(
        string,
        string $event_post_type
    ) {
        // Your code here.
        return string;
    },
    10,
    2
);

Parameters

  • string $post_type The venue post type slug. Default ‘gatherpress_venue’. Other variable names: Venue::POST_TYPE
  • string $event_post_type The event post type requesting a venue post type.

Files

apply_filters(
            'gatherpress_venue_post_type',
            Venue::POST_TYPE,
            $event_post_type
        )

← All Hooks