Returns a boolean value (true or false) indicating whether a page with the given ID exists in the pages table of the database.
Example
pageIdExists(1)
Further Documentation:
Example Usage:
if(pageExists(1)){
echo 'this is a valid UserSpice page id';
}
In this example, the function checks if there is a page with ID of 10 in the database. If there is, it will output "Page exists", otherwise it will output "Page does not exist".