$args = array(
‘type’ => ‘post’,
‘child_of’ => 0,
‘parent’ => ”,
‘orderby’ => ‘name’,
‘order’ => ‘ASC’,
‘hide_empty’ => 1,
‘hierarchical’ => 1,
‘exclude’ => ”,
‘include’ => ”,
‘number’ => 0,
‘taxonomy’ => ‘category’,
‘pad_counts’ => false
);
$categories = get_categories( $args );
if( $categories ){
foreach( $categories as $cat ){
// Данные в объекте $cat

// $cat->term_id
// $cat->name (Рубрика 1)
// $cat->slug (rubrika-1)
// $cat->term_group (0)
// $cat->term_taxonomy_id (4)
// $cat->taxonomy (category)
// $cat->description ()
// $cat->parent (0)
// $cat->count (14)
// $cat->object_id (2743)
// $cat->cat_ID (4)
// $cat->category_count (14)
// $cat->category_description ()
// $cat->cat_name (Рубрика 1)
// $cat->category_nicename (rubrika-1)
// $cat->category_parent (0)

}
}