Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/kevin-terry/disable-tec-organizer-venue-pages/archive/refs/heads/main.zipDisables public organizer and venue pages in The Events Calendar while keeping organizer and venue data available on event pages.
What It Does
- Disables public single organizer pages.
- Disables public organizer archives.
- Disables public single venue pages.
- Disables public venue archives.
- Removes clickable organizer links from event pages.
- Removes clickable venue links from event pages where TEC outputs them.
- Keeps organizer names, venue names, phone numbers, email addresses, websites, and other event-level metadata available where templates already display them.
- Forces disabled organizer and venue requests to resolve as
404responses until rewrite rules are refreshed.
Default Behavior
By default, the package disables both of these linked post types:
tribe_organizertribe_venue
Code-Level Configuration
Use the disable_tec_organizer_venue_pages_post_types filter in project code to control which linked post types should be disabled.
Disable only organizers:
add_filter('disable_tec_organizer_venue_pages_post_types', static function () {
return ['tribe_organizer'];
});
Disable only venues:
add_filter('disable_tec_organizer_venue_pages_post_types', static function () {
return ['tribe_venue'];
});
Disable both organizers and venues explicitly:
add_filter('disable_tec_organizer_venue_pages_post_types', static function () {
return ['tribe_organizer', 'tribe_venue'];
});
Installation
This package is intended for Composer-managed WordPress projects that support must-use plugin directories installed as package subdirectories.
composer require kevin-terry/disable-tec-organizer-venue-pages
If your project uses Composer installers, ensure wordpress-muplugin packages install into your mu-plugin directory.
Example installer path:
{
"extra": {
"installer-paths": {
"public_html/mu-plugins/{$name}": ["type:wordpress-muplugin"]
}
}
}
After installing, resave permalinks once in WordPress admin.
Requirements
- WordPress 6.2+
- PHP 7.4+
- The Events Calendar plugin
Notes
- This package is designed for Composer-managed mu-plugin workflows.
- In stacks that do not autoload mu-plugin subdirectories, you will need your existing mu-plugin autoloader strategy.
- The package does not remove organizer or venue management from the WordPress admin.
License
GPL-2.0-or-later