I came across this wordpress build-in function
get_page_by_path,
but I am still confused after reading
the documentation,
can anyone explain better to me
what does it exactly do and what value it returns ???
thanks !
I came across this wordpress build-in function
get_page_by_path,
but I am still confused after reading
the documentation,
can anyone explain better to me
what does it exactly do and what value it returns ???
thanks !
You must be logged in to post a comment.
Internally,
get_page_by_path()
eventually usesget_page()
(source here), returning an object or array (depending on the second$output
argument) representing a DB row fromwp_posts
.See http://codex.wordpress.org/Function_Reference/get_page#Return_Values