feat(import): store primary destination; crawl configured cities
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -368,6 +368,7 @@ class VC_Importer {
|
||||
'_vc_cancellation_policy' => wp_json_encode( vc_first_non_empty( array( vc_array_get( $product, 'cancellationPolicy' ), vc_array_get( $product, 'cancellation' ) ), array() ) ),
|
||||
'_vc_supplier' => sanitize_text_field( $supplier ),
|
||||
'_vc_destinations' => wp_json_encode( vc_array_get( $product, 'destinations', array() ) ),
|
||||
'_vc_primary_destination' => VC_Structure::primary_destination_id( (array) vc_array_get( $product, 'destinations', array() ) ),
|
||||
'_vc_tags' => wp_json_encode( vc_array_get( $product, 'tags', array() ) ),
|
||||
'_vc_rating' => sanitize_text_field( (string) $rating ),
|
||||
'_vc_review_count' => absint( $review_count ),
|
||||
|
||||
Reference in New Issue
Block a user