Support » Plugin: Ultimate Category Excluder » Plugin Improvment

  • Hello! Can you improve your plugin for hiding category in WordPress Category Widget?
    Example code:

    function exclude_widget_categories($args) {
    	$options = ksuce_get_options();
    	$exclude = array();
    		foreach ( $options[ 'exclude_main' ] as $value ) {
    			$exclude[] = $value; 
    		}
        $args["exclude"] = implode(',', $exclude);
        return $args;
    }
    add_filter("widget_categories_args","exclude_widget_categories");
  • You must be logged in to reply to this review.