Cached version of get_page_by_path so that we’re not making unnecessary SQL all the time


Name Type Description
$page_path string Page path
$output string Optional. Output type; OBJECT*, ARRAY_N, or ARRAY_A.
$post_type string Optional. Post type; default is 'page'.

Return Value

WP_Post|null: WP_Post on success or null on failure

Ready to get started?

Drop us a note.

No matter where you are in the planning process, we’re happy to help, and we’re actual humans here on the other side of the form. 👋 We’re here to discuss your challenges and plans, evaluate your existing resources or a potential partner, or even make some initial recommendations. And, of course, we’re here to help any time you’re in the market for some robust WordPress awesomeness.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.