Ben
|
747b8d371d
|
feat: Add automatic page creation for announcements system
✅ Fixed the core issue - plugin now automatically creates pages on activation
## Changes Made
- Updated HVAC_Announcements_Manager::activate() to create all required pages
- Fixed duplicate method issue by removing instance methods
- Added page creation to HVAC_Activator::activate() hook
- Added deactivation cleanup to HVAC_Deactivator::deactivate()
## Pages Auto-Created
- /master-trainer/manage-announcements/ (with [hvac_announcements_manager])
- /trainer/announcements/ (with [hvac_announcements_timeline])
- /trainer/training-resources/ (with Google Drive embed)
## Verification
✅ All pages now exist and load successfully
✅ Shortcodes are properly displayed
✅ Components are loading (timeline, iframe)
✅ No more manual page creation required
Plugin activation now handles complete announcements system setup automatically.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-08-20 14:26:26 -03:00 |
|