wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



get_all_category_ids › WordPress Function

Da2.0.0
Deprecato4.0.0
get_all_category_ids ( Nessun parametro )
Links:
Vedi:
Ritorna:
  • (int[]) List of all of the category IDs.
Definito a:
Codex:

Retrieves all category IDs.



Sorgenti

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;
}