tag_cloud_sort

tag_cloud_sort

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('tag_cloud_sort') is found 1 times:

  • /wp-includes/category-template.php line 900
    	 *
    	 * @param WP_Term[] $tags Ordered array of terms.
    	 * @param array     $args An array of tag cloud arguments.
    	 */
    	$tags_sorted = apply_filters( 'tag_cloud_sort', $tags, $args );
    	if ( empty( $tags_sorted ) ) {
    		return $return;
    	}
    
    	if ( $tags_sorted !== $tags ) {
    		$tags = $tags_sorted;