register_routes(); } public static function hourly_tick() { $scheduler = new Scheduler(); $scheduler->process_due_tasks(); } public static function daily_tick() { $ai = new AiProvider(); $ai->generate_newsletter_content(); } public static function admin_menu() { add_menu_page( 'Hermes AI Bridge', 'Hermes AI', 'manage_options', 'hermes-ai-bridge', [__CLASS__, 'admin_page'], 'dashicons-rest-api', 80 ); } public static function admin_page() { $api_key = get_option('hermes_api_key'); ?>
Use this key in the X-API-Key header for REST API calls.