• 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");
  • The topic ‘Plugin Improvment’ is closed to new replies.