I have just installed The Events Calendar Pro.
I am currently using the following custom template to hide any plugin related content and display a message and login link instead:
<?php if (current_user_can('read_tribe_event')): ?> <div id="tribe-events-pg-template"> <?php tribe_events_before_html(); ?> <?php tribe_get_view(); ?> <?php tribe_events_after_html(); ?> </div> <!-- #tribe-events-pg-template --> <?php else: ?> <?php echo get_template_part('restricted_access'); ?> <?php endif; ?> <?php get_footer(); ?>
I am now thinking that there may be some hook I can use to prevent The Events Calendar plugin from loading any of its content and load my content instead.
Does anyone know of the correct way to do this or have any other ideas?