self::OPTION_VERSION, 'version' => ACTIVELAYER_PLUGIN_VERSION, ] ); } } /** * Set the announce flag when an existing install (with API key) upgrades. * * @since 1.3.0 * * @return void */ private static function maybe_announce_for_upgrade(): void { $settings = get_option( 'activelayer_global_settings', [] ); if ( is_array( $settings ) && ! empty( $settings['api_key'] ) ) { update_option( self::OPTION_ANNOUNCE_REQUIRED, true ); } } }