I am trying to use currentPageID() in a widget I am building, in order for the widget to be installed on several different pages (without having to manually set a unique id). I thought that currentPageID() would do the job, however, I cant get it to work.
Here is the code in question
function pageID() {
return currentPageID();
}
I am obviously using this wrong, but I cant find any examples of it being used. Is there an easier way to have a unique page id?