diff --git a/wordpress-dev/wordpress/wp-content/plugins/hvac-community-events/includes/class-hvac-community-events.php b/wordpress-dev/wordpress/wp-content/plugins/hvac-community-events/includes/class-hvac-community-events.php index 89b73572..fe27ac05 100644 --- a/wordpress-dev/wordpress/wp-content/plugins/hvac-community-events/includes/class-hvac-community-events.php +++ b/wordpress-dev/wordpress/wp-content/plugins/hvac-community-events/includes/class-hvac-community-events.php @@ -304,8 +304,8 @@ class HVAC_Community_Events { // Add certificate fix shortcode (admin only) add_shortcode('hvac_certificate_fix', array($this, 'render_certificate_fix')); - // Add community events shortcode as fallback if TEC CE is not available - add_shortcode('tribe_community_events', array($this, 'render_tribe_community_events')); + // Removed shortcode override - let The Events Calendar Community Events handle this shortcode + // add_shortcode('tribe_community_events', array($this, 'render_tribe_community_events')); // Add future shortcodes here } @@ -629,178 +629,9 @@ class HVAC_Community_Events { return $template; } // End load_custom_templates - /** - * Render tribe community events shortcode - */ - public function render_tribe_community_events($atts) { - // Parse shortcode attributes - $atts = shortcode_atts(array( - 'view' => 'submission_form' - ), $atts); - - // Check if user is logged in - if (!is_user_logged_in()) { - return '
Please log in to access this feature.
'; - } - - // Check if user has permission - if (!current_user_can('hvac_trainer') && !current_user_can('edit_posts')) { - return 'Notice: The Events Calendar Community Events plugin is not active. Using basic event creation form.
-For full event management features, please contact your administrator to activate The Events Calendar Community Events plugin.
-Fill out the form below to create a new training event. All events are reviewed before being published.
-