AdvancedCustomFields / AdvancedCustomFields/acf

Get repeater data via providesContext/usesContext

Open
#710 1 comment 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

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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.