Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Disable your ad blocker to continue using our website.
Shortcodes Hook
-
Description
-
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.0.0 (11/24/2022)
- Initial Release
-
Author zipurman
-
Last updated Thu Nov 24, 2022 6:44 am
-
Total Downloads 635
-
Rating
(1)
-
Categories Other