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 !
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Internally,
get_page_by_path()eventually usesget_page()(source here), returning an object or array (depending on the second$outputargument) representing a DB row fromwp_posts.See http://codex.wordpress.org/Function_Reference/get_page#Return_Values