Created
April 10, 2015 03:18
-
-
Save bradonomics/655c7c3a3cd2dad9abb2 to your computer and use it in GitHub Desktop.
Limit the number of tags in the tag cloud widget
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
//* Limit the number of tags in the tag cloud widget | |
add_filter( 'widget_tag_cloud_args', 'my_widget_tag_cloud_args' ); | |
function my_widget_tag_cloud_args( $args ) { | |
$args = array( | |
'number' => 32, | |
); | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment