addHookAfter('Page::render', function($event) { * $event->return = str_replace("", "

Hello World

", $event->return); * }); * */ $wire->addHookAfter('Pages::added', function($event) { $page = $event->arguments(0); foreach ($this->wire->languages as $lang) $page->set("status$lang", 1); $page->save(); });