tag_cloud_sort WordPress Filter Hook

The tag_cloud_sort hook allows you to modify the way tags are sorted in a WordPress tag cloud. This can be useful if you want to sort tags alphabetically, by popularity, or by another criteria.

apply_filters( 'tag_cloud_sort', WP_Term[] $tags, array $args ) #

Filters how the items in a tag cloud are sorted.


Parameters

$tags

(WP_Term[])Ordered array of terms.

$args

(array)An array of tag cloud arguments.


Top ↑

Source

File: wp-includes/category-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.