Cached version of get_page_by_title so that we’re not making unnecessary SQL queries all the time
Parameters
Name | Type | Description |
---|---|---|
$page_title | string | Page title |
$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