Skip to content

Commit 2812507

Browse files
Load runtime groups on acf/init hook to allow registration of fields in themes
1 parent 7e448b4 commit 2812507

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/acfwpcli.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public function __construct() {
1111

1212
public function actions() {
1313
if ( ! defined( 'WP_CLI' ) ) {
14-
add_action( 'plugins_loaded', array( $this, 'add_runtime_fieldgroups' ) );
14+
add_action( 'acf/init', array( $this, 'add_runtime_fieldgroups' ) );
1515
}
1616
}
1717

0 commit comments

Comments
 (0)