AdvancedCustomFields / AdvancedCustomFields/acf

[Feature Request] Add return_format to oEmbed field

Open
#542 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.