Home > AI > Backend > Wordpress >

get_category

get_category( int|object $category, string $output = OBJECT, string $filter = 'raw' )



Parameters #Parameters
$category
(int|object) (Required) Category ID or category row object.

$output
(string) (Optional) The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to a WP_Term object, an associative array, or a numeric array, respectively.

Default value: OBJECT

$filter
(string) (Optional) How to sanitize category fields.

Default value: 'raw'
This 

This only applies to default Category.

Leave a Reply