Created
March 19, 2019 18:56
-
-
Save hwkdev/13d994aff6a583635bd9d3f6c0ecd42a to your computer and use it in GitHub Desktop.
Revisions
-
hwkdev created this gist
Mar 19, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ <?php add_filter('acf/pre_load_reference', 'hwk_bypass_get_field_ref', 10, 3); function hwk_bypass_get_field_ref($return, $field_name, $post_id){ if(is_int($post_id)) $return = acf_get_field($field_name, $post_id); return $return; }