apply_filters( ‘tag_cloud_sort’, WP_Term[] $tags, array $args )

In this article

Filters how the items in a tag cloud are sorted.

Parameters

$tagsWP_Term[]
Ordered array of terms.
$argsarray
An array of tag cloud arguments.

Source

$tags_sorted = apply_filters( 'tag_cloud_sort', $tags, $args );

Changelog

VersionDescription
2.8.0Introduced.

User Contributed Notes

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