Given a page path, return the page ID or 0 if not found.
Available since version 3.0.186.
Usage
$int = $pagePaths->getPageID($path);
Arguments
Name | Type(s) | Description |
---|---|---|
path | string, array |
Return value
int
null
PagePaths methods and properties
API reference based on ProcessWire core version 3.0.244