AdvancedCustomFields / AdvancedCustomFields/acf
[Feature Request] Add return_format to oEmbed field
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 945
- Forks
- 197
- PR merge metrics
- No merged PRs in 30d
Description
Hello, I'd like to request to add the return_format option to oEmbed Field, exactly the same as Image field that has return_format of "id".
So the oEmbed would have return_format of "html" which is the default, and "url" with the actual non-formatted value stored in the database.
Note: I can't disable the formatting like get_field("my_oembed", $id, false) because the oEmbed field is inside a Flex field, I need the flex field to be called with formatting but still return the oEmbed as URL instead HTML, just like my images are return ids, instead of arrays.
Thank you very much!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the oEmbed Field implementation and the Image field's existing return_format handling, then compare how formatting and stored values are processed. The change is done when oEmbed supports html as the default and url as the unformatted stored value while preserving formatting behavior for the surrounding Flex field.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100