This hook will allow you to easily create shortcode projects for easy use in info_pages.
For example, you can create a shortcode of:
[mycoolcode title="My Cool Project" products_id="123" button_class="btn-danger" text="This is an example"]
And then add a file:
includes/hooks/shop/siteWide/shortcodes/mycoolcode.php
An array of $shortcode['params'] will be passed to the mycoolcode.php file and you can code accordingly to replace the original:
[mycoolcode title="My Cool Project" products_id="123" button_class="btn-danger" text="This is an example"]
with whatever the params and your imagination can think of.
I am planning on building some cool modules that use this for integration, I thought I would share and see what others come up with.
Have Fun!
Add your own [shortcode] addons that use this for integration into info_pages and other areas.
1.1.0 (09/11/2024)
- added support for templated pages
- 1.0.0 (11/24/2022)
- Initial Release