wpcom_vip_get_page_by_path

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

Parameters

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?

Tell us about your needs

Let us lead the way. We’ll help you select a top tier development partner. We’ll train your developers, operations, infrastructure, and editorial teams. We’ll coarchitect your deployment processes. We will provide live support for peak events. We’ll help your people avoid dark alleys and blind corners, and reduce wasted cycles.