Skip to content

Commit 5d6219a

Browse files
committed
Merge pull request #2 from kokarn/patch-1
Remove check for get_fields to fix loading order
2 parents f2e87ee + e691292 commit 5d6219a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

plugin.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,4 @@ function wp_api_encode_acf($data,$post,$context){
1515
return $data;
1616
}
1717

18-
if( function_exists('get_fields') ){
19-
add_filter('json_prepare_post', 'wp_api_encode_acf', 10, 3);
20-
}
18+
add_filter('json_prepare_post', 'wp_api_encode_acf', 10, 3);

0 commit comments

Comments
 (0)