Skip to content

Commit 1b12d19

Browse files
committed
Detect ACF by acf_register_location_type
ACF_Location_Page_Type class is loaded later during ACF’s init flow. Since this plugin checks integrations on plugins_loaded, the ACF integration will never register its acf/include_location_rules hook
1 parent c6b9451 commit 1b12d19

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Integration/AdvancedCustomFields/AdvancedCustomFields.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ final class AdvancedCustomFields implements IntegrationInterface
1616
{
1717
public function isSupported(): bool
1818
{
19-
return \class_exists('ACF_Location_Page_Type');
19+
return \function_exists('acf_register_location_type');
2020
}
2121

2222
public function registerHooks(): void

0 commit comments

Comments
 (0)