Created
January 30, 2016 07:17
-
-
Save meloniq/52658d93f08291b88a1b to your computer and use it in GitHub Desktop.
[WP Tags Cloud widget] Set number of tags you would like to display
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function childtheme_set_tag_cloud_items_number( $args ) { | |
// set number of tags you would like to display in the WP Tags Cloud widget | |
$args['number'] = 69; | |
return $args; | |
} | |
add_filter( 'widget_tag_cloud_args', 'childtheme_set_tag_cloud_items_number', 10, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment