Advertisement
phpface

Untitled

May 26th, 2019
393
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.62 KB | None | 0 0
  1. if( ! function_exists( 'videotube_exclude_tagcloud_terms' ) ){
  2.     /**
  3.      *
  4.      * Filter the tagcloud widget.
  5.      *
  6.      * @method videotube_exclude_tagcloud_terms
  7.      *
  8.      * @see https://codex.wordpress.org/Function_Reference/wp_tag_cloud
  9.      *
  10.      * @param array $args
  11.      * @return array $args
  12.      *
  13.      */
  14.     function videotube_exclude_tagcloud_terms( $args ){
  15.         // Comma separated list of tags (term_id) to exclude. For example, exclude=5,27 means tags that have the term_id 5 or 27 will NOT be displayed
  16.         $args['exclude'] = '5,27';
  17.         return $args;
  18.     }
  19.     add_filter( 'mars_tag_cloud_value', 'videotube_exclude_tagcloud_terms', 10, 1 );
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement