get_page_by_path Wordpress function


Description:

Retrieves a page given its path.


Syntax:


Arguments:

(string) $page_path Page path
(string) $output Optional. Output type. OBJECT, ARRAY_N, or ARRAY_A. Default OBJECT.
(string) $post_type Optional. Post type. Default page.


Return Type:

(WP_Post|null) WP_Post on success or null on failure


Define At:

wp-includes/post.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/get_page_by_path


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×