get_category_by_path Wordpress function


Description:

Retrieve category based on URL containing the category slug.


Syntax:


Arguments:

(string) $category_path URL containing category slugs.
(bool) $full_match Optional. Whether full path should be matched.
(string) $output Optional. Constant OBJECT, ARRAY_A, or ARRAY_N


Return Type:

(null|object|array) Null on failure. Type is based on $output value.


Define At:

wp-includes/category.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/get_category_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 ×