Last active
July 8, 2016 12:10
-
-
Save raae/ae9aa2a7a4f882fc24e6eae892f58b51 to your computer and use it in GitHub Desktop.
ACF field in WP RSS feed
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
add_filter( 'rest_api_allowed_public_metadata', 'allow_my_metadata' ); | |
function allow_my_metadata() { | |
$allowed_meta_keys[] = 'audio_url'; | |
$allowed_meta_keys[] = 'start_station'; | |
$allowed_meta_keys[] = 'end_station'; | |
return $allowed_meta_keys; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment