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

get_all_category_ids ()

Retrieves all category IDs.

Return: (object) List of all of the category IDs.

Source file: wp-includes/deprecated.php

View source



Source

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

	if ( ! $cat_ids = wp_cache_get( 'all_category_ids', 'category' ) ) {
		$cat_ids = get_terms( 'category', array('fields' => 'ids', 'get' => 'all') );
		wp_cache_add( 'all_category_ids', $cat_ids, 'category' );
	}

	return $cat_ids;
}


Changelog


User Contributed Notes

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