Page 1 of 1

Feature Request (Plugins API)

Posted: Mon Mar 09, 2020 9:50 pm
by bbyrdhouse
Hi,

I would like to ask for more hooks to be added to the theme api.
The way things are currently setup means that there can only be 1 instance of a hook used in the theme and this can create a lot of complications.

Example: Take the "Links" plugin that uses the siteSidebar hook

If a user has the links plugin activated on their site then anywhere else that hook is used, it will include those links in the output.

I would much rather be able to use my own hooks and create plugins to use those, if not, then I would like to ask for more hooks to be made available for the theme:

CURRENT HOOKS
  • siteHead
    siteBodyBegin
    siteBodyEnd
    siteSidebar
    beforeSiteLoad
    afterSiteLoad
    pageBegin
    pageEnd
PROPOSED ADDITIONAL HOOKS
  • siteSidebar_a
    siteSidebar_b
    siteSidebar_c
    nav_a
    nav_b
    nav_c
    footer_a
    footer_b
    footer_c
    extra_a
    extra_b
    extra_c
    extra_d
    extra_e
    extra_f
Unless I am totally missing something, it appears that plugins can bump into each other way to easily.

Re: Feature Request (Plugins API)

Posted: Mon Mar 09, 2020 11:29 pm
by Edi
Please use for feature requests our GitHub tracker:

https://github.com/bludit/bludit/issues