I had to put it in function.php which I think not the best place as such logic ideally needs to be incapsulated in block itself (additional php file? to do hook/filters and custom logic before rendering a block).
Also when dozens for custom blocks are created – functions.php gets messy with all hook/filter registrations.
The question is what is the best place to put such logic so it would be as a part of a block – not a part of functions.php
Viewing 1 post (of 1 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users