wphooks.info - wp_tag_cloud

wp_tag_cloud

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/category-template.php:
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
	$return = wp_generate_tag_cloud( $tags, $args ); // Here's where those top tags get sorted according to $args

	/**
	 * Filters the tag cloud output.
	 *
	 * @since 2.3.0
	 *
	 * @param string $return HTML output of the tag cloud.
	 * @param array  $args   An array of tag cloud arguments.
	 */
	$return = apply_filters( 'wp_tag_cloud', $return, $args );

	if ( 'array' == $args['format'] || empty( $args['echo'] ) ) {
		return $return;
	}

	echo $return;
}

/**