get_all_category_ids()

You are here:

get_all_category_ids()

Retrieves all category IDs.

Description Description

See also See also

  • get_terms()

Top ↑

Return Return

(object) List of all of the category IDs.


Top ↑

Source Source

File: wp-includes/deprecated.php

1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
function get_all_category_ids() {
    _deprecated_function( __FUNCTION__, '4.0.0', 'get_terms()' );
 
    $cat_ids = get_terms(
        array(
            'taxonomy' => 'category',
            'fields'   => 'ids',
            'get'      => 'all',
        )
    );
 
    return $cat_ids;
}


Top ↑

Changelog Changelog

Changelog
VersionDescription
4.0.0Use get_terms()
2.0.0Introduced.
Was this article helpful?
Dislike 0
Views: 1

Cart

Log in

Create an Account
Back to Top