Skip to content

Commit

Permalink
Load runtime groups on acf/init hook to allow registration of fields …
Browse files Browse the repository at this point in the history
…in themes
  • Loading branch information
sebastiaandegeus committed Nov 30, 2017
1 parent 7e448b4 commit 2812507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/acfwpcli.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public function __construct() {

public function actions() {
if ( ! defined( 'WP_CLI' ) ) {
add_action( 'plugins_loaded', array( $this, 'add_runtime_fieldgroups' ) );
add_action( 'acf/init', array( $this, 'add_runtime_fieldgroups' ) );
}
}

Expand Down

0 comments on commit 2812507

Please sign in to comment.