Feature Request (Plugins API)

Post Reply
bbyrdhouse
Ssr. Bludit
Posts: 16
Joined: Sun Mar 08, 2020 1:36 am

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.
User avatar
Edi
Site Admin
Posts: 2083
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Please use for feature requests our GitHub tracker:

https://github.com/bludit/bludit/issues
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
Post Reply