'; echo esc_html__('Advanced Connector for Uplisting: Run composer install in the plugin directory.', 'advanced-connector-for-uplisting'); echo '

'; } ); return; } require_once $bizdex_uplisting_autoloader; /** * Get the singleton plugin instance. * * @return Plugin */ if (!function_exists('bizdex_uplisting')) { function bizdex_uplisting(): Plugin { return Plugin::instance(); } } bizdex_uplisting(); register_activation_hook( BIZDEX_UPLISTING_PLUGIN_FILE, static function (): void { bizdex_uplisting_migrate_legacy_options(); bizdex_uplisting_clear_legacy_cron(); bizdex_uplisting_ensure_permalink_defaults(); bizdex_uplisting_schedule_rewrite_flush(); add_filter( 'cron_schedules', static function (array $schedules): array { $schedules['bizdex_uplisting_every_three_hours'] = [ 'interval' => 3 * HOUR_IN_SECONDS, 'display' => esc_html__('Every 3 Hours', 'advanced-connector-for-uplisting'), ]; return $schedules; } ); // Schedule price sync (first install). if (!wp_next_scheduled('bizdex_uplisting_listing_price_sync')) { wp_schedule_event(time(), 'bizdex_uplisting_every_three_hours', 'bizdex_uplisting_listing_price_sync'); } wp_schedule_single_event(time() + 60, 'bizdex_uplisting_listing_price_sync'); } ); register_deactivation_hook( BIZDEX_UPLISTING_PLUGIN_FILE, static function (): void { wp_clear_scheduled_hook('bizdex_uplisting_listing_price_sync'); wp_clear_scheduled_hook('bizdex_uplisting_calendar_sync'); bizdex_uplisting_clear_legacy_cron(); flush_rewrite_rules(false); } );