Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recover the data via JSON #9

Open
adrianofreires opened this issue Jan 25, 2022 · 0 comments
Open

Recover the data via JSON #9

adrianofreires opened this issue Jan 25, 2022 · 0 comments

Comments

@adrianofreires
Copy link

I'm using the post in video format and I would like to retrieve the content when I access the wordpress rest api. So I created the following code, but which hook would I use to retrieve the embed link?

function youtube_custom_field(){ register_rest_field(array('post'), 'youtube_URL', array( 'get_callback' => function() {return get_theme_support(the_hook());} ));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant