Warning: This function has been deprecated. Use get_terms() instead.


Retrieves all category IDs.

Description Description

Top ↑

See also See also

Top ↑

Return Return

(int[]) List of all of the category IDs.

Top ↑

Source Source

File: wp-includes/deprecated.php

function get_all_category_ids() {
	_deprecated_function( __FUNCTION__, '4.0.0', 'get_terms()' );

	$cat_ids = get_terms(
			'taxonomy' => 'category',
			'fields'   => 'ids',
			'get'      => 'all',

	return $cat_ids;

Top ↑

Changelog Changelog

Version Description
4.0.0 Use get_terms()
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.