(bool) get_option( 'aeoora_preset' ) || (bool) Aeoora_Settings::get( 'robots', 'policies' ), 'identity' => '' !== trim( (string) $schema['org_name'] ) || '' !== trim( (string) Aeoora_Settings::get( 'llms', 'summary', '' ) ) || '' !== trim( (string) $schema['same_as'] ), 'ai' => '' !== Aeoora_Ai::default_provider(), 'audit' => (bool) get_option( 'aeoora_site_audit' ), 'scan' => $dist['scanned'] > 0, ); $done = count( array_filter( $steps ) ); return array( 'completed' => ! empty( $saved['completed'] ), 'steps' => $steps, 'done' => $done, 'total' => count( $steps ), 'url' => admin_url( 'admin.php?page=aeoora-setup' ), ); } /** * Mark the wizard as finished (or skipped). * * @param bool $skipped Skipped rather than finished. */ public static function complete( $skipped = false ) { update_option( self::OPTION, array( 'completed' => time(), 'skipped' => (bool) $skipped, ), false ); delete_option( 'aeoora_show_welcome' ); } }