The “pop_tag_cloud” filter is used to modify the arguments used to retrieve the tags.

A plugin (or theme) can modify the object with the code:

<?php add_filter( 'pop_tag_cloud', 'filter_function_name'); ?>

The hook is located in the popular-widget/_inc/functions.php file.


// Apply filter
function modify_pop_tag_cloud( $args ) {
	$args['taxonomy'] = 'my-tax';
	return $args;
add_filter('pop_tag_cloud', 'modify_pop_tag_cloud');

Note:  $args is an associative array that must match the values used by wp_tag_cloud().

Leave a Reply

Your email address will not be published. Required fields are marked *