"; echo ""; echo ""; echo "

TEC Community Events Test - Staging

"; // Test 1: Plugin Status echo "

1. Plugin Status

"; $tec_active = is_plugin_active('the-events-calendar/the-events-calendar.php'); $tec_ce_active = is_plugin_active('the-events-calendar-community-events/tribe-community-events.php'); echo "

TEC Main: " . ($tec_active ? '✓ Active' : '✗ Inactive') . "

"; echo "

TEC Community: " . ($tec_ce_active ? '✓ Active' : '✗ Inactive') . "

"; // Test 2: Shortcode Registration echo "

2. Shortcode Status

"; echo "

[tribe_community_events]: " . (shortcode_exists('tribe_community_events') ? '✓ Registered' : '✗ Not Registered') . "

"; echo "

[hvac_create_event]: " . (shortcode_exists('hvac_create_event') ? '✓ Registered' : '✗ Not Registered') . "

"; echo "

[hvac_edit_event]: " . (shortcode_exists('hvac_edit_event') ? '✓ Registered' : '✗ Not Registered') . "

"; // Test 3: Function Availability echo "

3. Function Availability

"; echo "

tribe_community_events_init(): " . (function_exists('tribe_community_events_init') ? '✓ Available' : '✗ Not Available') . "

"; // Test 4: Shortcode Callbacks echo "

4. Shortcode Callbacks

"; global $shortcode_tags; if (isset($shortcode_tags['hvac_edit_event'])) { $callback = $shortcode_tags['hvac_edit_event']; if (is_array($callback)) { echo "

hvac_edit_event callback: " . get_class($callback[0]) . "::" . $callback[1] . "()

"; } else { echo "

hvac_edit_event callback: $callback

"; } } else { echo "

hvac_edit_event: No callback found

"; } // Test 5: Direct Shortcode Test echo "

5. Direct TEC Shortcode Test

"; if (shortcode_exists('tribe_community_events')) { echo "

Testing [tribe_community_events view=\"submission_form\"]:

"; echo "
"; // Capture any PHP errors ob_start(); $output = do_shortcode('[tribe_community_events view="submission_form"]'); $errors = ob_get_clean(); if ($errors) { echo "
PHP Errors:
" . esc_html($errors) . "
"; } if (trim($output)) { echo "
Output Length: " . strlen($output) . " characters
"; echo "
First 500 chars:
" . esc_html(substr($output, 0, 500)) . "...
"; } else { echo "
No output generated
"; } echo "
"; } else { echo "

Cannot test - tribe_community_events shortcode not available

"; } echo ""; ?>