Some more details on where/when hooks should be placed

Post Reply
joho
Master Bludit
Posts: 63
Joined: Thu Jun 08, 2023 3:02 pm
Location: Sweden
Has thanked: 17 times
Been thanked: 19 times

Looking at the popeye theme, in page.php, I see that Theme::plugins('pageBegin'); is called after some HTML has been output.

To me, the wording "pageBegin" would indicate something that should be called at the beginning of the page, but I guess I understand that incorrectly?

-joho
User avatar
indocreativemedia
Ssr. Bludit
Posts: 10
Joined: Sun Sep 24, 2023 5:09 am
Location: Indonesia
Been thanked: 2 times
Contact:

The theme is fine.

List of hooks can be checked here: https://docs.bludit.com/en/plugins/hooks-list
joho
Master Bludit
Posts: 63
Joined: Thu Jun 08, 2023 3:02 pm
Location: Sweden
Has thanked: 17 times
Been thanked: 19 times

Yes, I've read that. But the "Notes" column on that page could use some more detail, IMHO.

Like "Should be placed before POST content", "Should be placed after POST content". And possibly: "If you are listing several POSTS on a single page, like home.php, this hook should be called for each item".
Post Reply