Skip to content

Commit 8691c2b

Browse files
committed
Use acf_register_location_type for page_type
1 parent 7d2e542 commit 8691c2b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Integration/AdvancedCustomFields/AdvancedCustomFields.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function registerLocationRules(int $acfFieldApiVersion): void
3131
}
3232

3333
$store = acf_get_store('location-types');
34-
$locationType = new LocationPageType();
35-
$store->set($locationType->name, $locationType);
34+
$store->remove('page_type');
35+
acf_register_location_type(LocationPageType::class);
3636
}
3737
}

0 commit comments

Comments
 (0)