list_cats

FUNCTION wp-includes\deprecated.php (ligne 608) github
Lists categories.

Paramètres

Entrée :
$optionall = 1, $all = 'All', $sort_column = 'ID', $sort_order = 'asc', $file = '', $list = true, $optiondates = 0,
				$optioncount = 0, $hide_empty = 1, $use_desc_for_title = 1, $children=false, $child_of=0, $categories=0,
				$recurse=0, $feed = '', $feed_image = '', $exclude = '', $hierarchical=false
Sortie :
@param int $optionall
@param string $all
@param string $sort_column
@param string $sort_order
@param string $file
@param bool $list
@param int $optiondates
@param int $optioncount
@param int $hide_empty
@param int $use_desc_for_title
@param bool $children
@param int $child_of
@param int $categories
@param int $recurse
@param string $feed
@param string $feed_image
@param string $exclude
@param bool $hierarchical
@return null|false

Utilisation

// Utilisation de la fonction list_cats
$result = list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_order = 'asc', $file = '', $list = true, $optiondates = 0,
				$optioncount = 0, $hide_empty = 1, $use_desc_for_title = 1, $children=false, $child_of=0, $categories=0,
				$recurse=0, $feed = '', $feed_image = '', $exclude = '', $hierarchical=false);

if ($result) {
    // Votre logique ici
}

Actualités

Chargement des actualités...