Title: custom parameter key
Last modified: June 9, 2022

---

# custom parameter key

 *  [janice4summer](https://wordpress.org/support/users/janice4summer/)
 * (@janice4summer)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/custom-parameter-key/)
 * Hi,
 * How can we change the annoying parameter key in the url “?yith_wcan=1”, to for
   example
    ?filter=1
 * I saw you have some functions.php code, but it does not work
    [https://wordpress.org/support/topic/can-we-rename-the-url-parameters/](https://wordpress.org/support/topic/can-we-rename-the-url-parameters/)
 * thanks

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

 *  Plugin Support [Alessio Torrisi](https://wordpress.org/support/users/alessio91/)
 * (@alessio91)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/custom-parameter-key/#post-15733026)
 * HI there,
    thank you for contacting us.
 * Please add following code in the file functions.php of your theme to change the
   query arg.
 *     ```
       add_filter( 'yith_wcan_query_param', 'yith_wcan_customize_query_param' );
   
       if( ! function_exists( 'yith_wcan_customize_query_param' ) ){
        function yith_wcan_customize_query_param( $param ){
         $param = 'filter';
         return $param;
        }
       }
       ```
   
 * I hope be helpful for you.
 *  [sherlock99](https://wordpress.org/support/users/sherlock99/)
 * (@sherlock99)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/custom-parameter-key/#post-15870875)
 * Hi,
 * unfortunately, the code you provided does not work !
 * It just stays the same annoying** “?yith_wcan=1”.**
 * Could you please help to fix this ?
 * Thanks

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

The topic ‘custom parameter key’ is closed to new replies.

 * ![](https://ps.w.org/yith-woocommerce-ajax-navigation/assets/icon-256x256.gif?
   rev=3129944)
 * [YITH WooCommerce Ajax Product Filter](https://wordpress.org/plugins/yith-woocommerce-ajax-navigation/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yith-woocommerce-ajax-navigation/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yith-woocommerce-ajax-navigation/)
 * [Active Topics](https://wordpress.org/support/plugin/yith-woocommerce-ajax-navigation/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yith-woocommerce-ajax-navigation/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yith-woocommerce-ajax-navigation/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [sherlock99](https://wordpress.org/support/users/sherlock99/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/custom-parameter-key/#post-15870875)
 * Status: not resolved