Title: [Plugin: Multiple Category Selection Widget] Call reset_mcsw function after seaech
Last modified: August 20, 2016

---

# [Plugin: Multiple Category Selection Widget] Call reset_mcsw function after seaech

 *  [Dani](https://wordpress.org/support/users/danicasati/)
 * (@danicasati)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-multiple-category-selection-widget-call-reset_mcsw-function-after-seaech/)
 * Hi.
    In latest version of your plugin appears RESET button. It would be possibile
   to call this function after search? So, user will display clear combobox without
   reset manually.
 * [http://wordpress.org/extend/plugins/multiple-category-selection-widget/](http://wordpress.org/extend/plugins/multiple-category-selection-widget/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [Dani](https://wordpress.org/support/users/danicasati/)
 * (@danicasati)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-multiple-category-selection-widget-call-reset_mcsw-function-after-seaech/#post-2729271)
 * Ok, here is the solution:
 * file /mcsw.php
 * add after (line 112):
    $_SESSION[‘wpmm_search_vars’] = $type;
 *  unset($_SESSION[‘wpmm_cats’]);
    unset($_SESSION[‘wpmm_search_vars’]);
 *  [saltyflavor](https://wordpress.org/support/users/saltyflavor/)
 * (@saltyflavor)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/plugin-multiple-category-selection-widget-call-reset_mcsw-function-after-seaech/#post-2729511)
 * this succeeds in clearing the combobox but removes the functionality of the plugin

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Multiple Category Selection Widget] Call reset_mcsw function
after seaech’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/multiple-category-selection-widget.
   svg)
 * [Multiple Category Selection Widget](https://wordpress.org/plugins/multiple-category-selection-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/multiple-category-selection-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/multiple-category-selection-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/multiple-category-selection-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/multiple-category-selection-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/multiple-category-selection-widget/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [saltyflavor](https://wordpress.org/support/users/saltyflavor/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/plugin-multiple-category-selection-widget-call-reset_mcsw-function-after-seaech/#post-2729511)
 * Status: not resolved