wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



get_all_category_ids › WordPress Function

Od2.0.0
Przestarzały4.0.0
› get_all_category_ids ( Brak parametrów )
Linki:
Zobacz:
Powrót:
  • (int[]) List of all of the category IDs.
Zdefiniowane na:
Codex:

Retrieves all category IDs.



Źródło

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