Shortcodes Hook

1.0.0 Phoenix 1.0.8.3 - 1.0.8.20
Released:
Thu Nov 24, 2022 6:44 am
File size:
3.3 KiB
Validated for:
Phoenix 1.0.8.3 - 1.0.8.20
MD5 checksum:
a0a0b4f5c45ec5e3a074c973d11a50ea
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
NOT SUPPORTED
TESTED 7.x
TESTED 8.0
  • Author zipurman
  • Last updated Thu Nov 24, 2022 6:44 am
  • Total Downloads 43
  • Rating
    (1)
  • Categories Other
  • Addon Revisions/Downloads
    Version
    Phoenix Version(s)