array( 'SXANL_Settings', 'profile_import' ), 'uses' => array_values( SXANL_Settings::profile_map() ), ) ); // Sentrixa edition: Sites app integration + self-hosted updater live in pro/, which is not in the WordPress.org package. if ( is_readable( SXANL_DIR . 'pro/loader.php' ) ) { require_once SXANL_DIR . 'pro/loader.php'; } // Registered at file scope (not in SXANL_Plugin) so the 10-minute rollup cron // interval is also available during plugin activation. add_filter( 'cron_schedules', array( 'SXANL_Rollup', 'add_interval' ) ); /** * Activation: create the tables and seed the default options. Nothing else runs * here: the bundled GeoIP file is copied into uploads by a one-off background * event, and no external server is contacted. */ function sxanl_activate() { SXANL_Migrate::run(); SXANL_Schema::activate(); SXANL_GeoIP::schedule_staging(); } register_activation_hook( __FILE__, 'sxanl_activate' ); /** * Deactivation: stop all scheduled work (data is left intact). */ function sxanl_deactivate() { SXANL_Rollup::clear_schedule(); SXANL_GeoIP_Updater::clear_schedule(); } register_deactivation_hook( __FILE__, 'sxanl_deactivate' ); add_action( 'plugins_loaded', array( 'SXANL_Plugin', 'instance' ) );