Dynamic Data Tag composer library

Because we very often use dynamic data tags in our client projects, I created a library to simplify the whole creation and was hoping for some feedback: GitHub - JUVOJustin/bricks-dynamic-data-tags

The goal was to create a really easy to use library where a few lines of code solve for what the official docs want you to implement 4 functions, filters and regex. I would love to receive some feedback.

I am planning to add some ootb filters for tags later, so that you can even save time. One example would be a post__in filter. When using a dynamic data tag in a php query as post__in parameter, it will change an empty return value to the value of PHP_INT_MAX due to this bug: #28099 (Empty array passed to WP_Query post__in returns posts) – WordPress Trac . That’s something I stumble upon a lot :smiley:

3 Likes