WP-4712 Adding hook_init handler to apply restricted page access