2020-05-01 / 3390阅 / 悠然
Retrieve category based>
Breaks the $category_path parameter up to get the category slug.
Tries to find the child path and will return it. If it doesn’t find a match, then it will return the first category matching slug, if $full_match, is set to false. If it does not, then it will return null.
It is also possible that it will return a WP_Error object>
URL containing category slugs.
Whether full path should be matched.
Default value: true
The required return type.>WP_Term object, an associative array, or a numeric array, respectively.
Default value: OBJECT
(WP_Term|array|WP_Error|null) Type is based on $output value.