infinum / eightshift-libs

Library that is meant to be used inside Eightshift Boilerplate and Eightshift Boilerplate Plugin libs via composer in order to be able to easily set up a modern development process.
https://eightshift.com
MIT License
62 stars 11 forks source link

[FEATURE] Create helper that can load reusable block in the template without the need to write large iterations of the code #402

Closed DjidjaleskaSandra closed 5 months ago

DjidjaleskaSandra commented 6 months ago

Description

Develop a helper function in PHP for WordPress that simplifies the process of loading reusable block content into templates. This function aims to reduce redundancy and improve code readability by encapsulating the common pattern of fetching, parsing, and rendering reusable blocks into a single, reusable utility.

Productive task

https://app.productive.io/1-infinum/tasks/7979972

Issue

https://github.com/infinum/eightshift-frontend-libs/issues/459