Skip to content

Commit

Permalink
Clean hook names
Browse files Browse the repository at this point in the history
  • Loading branch information
puleeno committed Jul 7, 2024
1 parent d0a10bc commit e1ac1c5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@ protected function renderContent($engine)
// Compatible with old WordPress versions.
public function legacyRender($engine)
{
do_action('jankx/template/header/before', $this);

/**
* Get site header
*/
Expand Down Expand Up @@ -158,7 +156,7 @@ public function legacyRender($engine)
)
);

do_action('jankx/template/render/end', $this);
do_action('jankx/template/page/render/end', $this);
}

/**
Expand All @@ -169,7 +167,7 @@ public function legacyRender($engine)
*/
public function render()
{
do_action('jankx/template/render/start', $this);
do_action('jankx/template/page/render/start', $this);

$engine = Template::getEngine(Jankx::ENGINE_ID);
if (!$engine->isDirectRender()) {
Expand Down Expand Up @@ -213,6 +211,6 @@ public function render()
</html>

<?php
do_action('jankx/template/render/end', $this);
do_action('jankx/template/page/render/end', $this);
}
}

0 comments on commit e1ac1c5

Please sign in to comment.