The 'checkPageValidity' method provides a custom way to flag URL pages as out-of-bounds for custom themes.
But I can't seem to make it work in my custom theme:
https://github.com/wongm/rail-history-cms/blob/master/themes/rail-history-cms/functions.php
Custom code is:
```
function railHistoryCMS_checkPageValidity($request, $gallery_page, $page) {
// CUSTOM STUFF
return checkPageValidity($request, $gallery_page, $page);
}
global $_zp_page_check;
$_zp_page_check = 'railHistoryCMS_checkPageValidity'; // opt-in, standard behavior
```
Calls to `checkPageValidity` are never executed, with `echo "X"` outputting nothing, and modifying the generic `checkPageValidity` in the same way also shows nothing.
Any other places I should start digging around?