getid()
getid(string $pagename) : integer
Gets the page id associated with the given page name.
If it doesn't exist in the id index, it will be added.
Parameters
string | $pagename | The name of the page to fetch the id for. |
Returns
integer —The id for the specified page name.