Page 1 of 1

Some more details on where/when hooks should be placed

Posted: Fri Jun 28, 2024 2:15 pm
by joho
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

Re: Some more details on where/when hooks should be placed

Posted: Sat Jun 29, 2024 12:03 pm
by indocreativemedia
The theme is fine.

List of hooks can be checked here: https://docs.bludit.com/en/plugins/hooks-list

Re: Some more details on where/when hooks should be placed

Posted: Fri Jul 05, 2024 9:19 am
by joho
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".