Last active
October 8, 2019 17:59
-
-
Save vanaf1979/4572a08a72691bc387dfc603c8ab51ff to your computer and use it in GitHub Desktop.
This file contains 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 characters
<?php | |
function load_acf_json( string $file ) : array { | |
return json_decode( file_get_contents( get_template_directory() . $file ) , true ); | |
} | |
?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment