Hi, i want to set the Status of a page to hidden, so it won't be shown when a user comes from a specific hostname.
I added this in _func.php:
$page=$pages->get(1004);
$page->addStatus(Page::statusUnpublished);
$page->addStatus(Page::statusHidden);
But it still shows on the Website. What am I doing wrong?