AdvancedCustomFields / AdvancedCustomFields/acf
Get repeater data via providesContext/usesContext
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 945
- Forks
- 197
- PR merge metrics
- No merged PRs in 30d
Description
Originally brought up via https://github.com/AdvancedCustomFields/acf/issues/654#issuecomment-1244112535
It seems we only have access to the raw data, which is understandable, but it would be great to get the return value as expected via get_field().
@lgladdy originally posted:
In the future, I'd expect we'll get some kind of
acf_build_context_data()function into core for you, but given this context was just a quick thing I managed to get into the 6.0 release as an MVP, we'll work more on this over our next few releases.
This is a new issue to keep the discussion focused on this specific FR.
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 reading the linked discussion and locating the current providesContext/usesContext implementation in the ACF codebase. Compare the raw repeater data exposed through context with the value returned by get_field(). Done means context access returns the expected get_field()-style value rather than only raw data.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100