Replies: 1 comment 11 replies
-
So I've rethought whole approach and instead of using wpgraphql-acf filter I've used So only request would be to add some filter to be able to change the EDIT: After trying the code out I've ended up with using combination of both filters - |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey @jasonbahl,
I have an issue and I can't seem to be able to solve it. In older implementation of
wp-graqphql-acf
I was able to usegraphql_acf_field_value
filter to change values of subfields in reapeater/flexible_fields (and other types that have nested values that I'm forgetting now).I had a piece of code that was checking the type of the field and if it was
text
ortextarea
then I was applyingdo_shortcode
function to its value.This still works as expected with new filter called
wpgraphql/acf/field_value
for simple fields but I can't seem to be able to do the same for individual values in a reapeater/flexible_content.Is there any other filter to do just that? I've browsed the code and couldn't find anything useful. Seems like right now I'm getting repeaters/flexible_fields as one big blog of data with values in 2D array.
What I'm after is to be able to filter these subfields the same as parent field. Could you help me with that?
Cheers,
Furai
Beta Was this translation helpful? Give feedback.
All reactions