{"id":15698071,"date":"2022-06-01T08:38:51","date_gmt":"2022-06-01T08:38:51","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/plugin-improvment\/"},"modified":"2022-06-01T08:38:51","modified_gmt":"2022-06-01T08:38:51","slug":"plugin-improvment","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/plugin-improvment\/","title":{"rendered":"Plugin Improvment"},"content":{"rendered":"<p>Hello! Can you improve your plugin for hiding category in WordPress Category Widget?<br \/>\nExample code:<\/p>\n<pre><code>function exclude_widget_categories($args) {\n\t$options = ksuce_get_options();\n\t$exclude = array();\n\t\tforeach ( $options[ &#039;exclude_main&#039; ] as $value ) {\n\t\t\t$exclude[] = $value; \n\t\t}\n    $args[&quot;exclude&quot;] = implode(&#039;,&#039;, $exclude);\n    return $args;\n}\nadd_filter(&quot;widget_categories_args&quot;,&quot;exclude_widget_categories&quot;);<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-15698071","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15698071","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15698071\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15698071"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}