1 parent 1b12d19 commit ca54380Copy full SHA for ca54380
1 file changed
src/Integration/AdvancedCustomFields/AdvancedCustomFields.php
@@ -31,7 +31,7 @@ public function registerLocationRules(int $acfFieldApiVersion): void
31
}
32
33
$store = acf_get_store('location-types');
34
- $locationType = new LocationPageType();
35
- $store->set($locationType->name, $locationType);
+ $store->remove('page_type');
+ acf_register_location_type(LocationPageType::class);
36
37
0 commit comments