• Hi, I would like to know if is it possible to rename the “yith_wcan” parameter in url ?
    To something like “filter=1” instead.

    Is it possible with hook or something like that ?
    thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Alessio Torrisi

    (@alessio91)

    Hi there,
    please add following code in the file functions.php of your theme to set your favourite parameter key.

    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 = 'your_name';
    		return $param;
    	}
    }
    Thread Starter Jean R.

    (@efbi)

    Hi, thanks for your answer.

    I just tried the snipet but I still have “yith_wcan”. I use the latest version of this plugin

    Plugin Support Alessio Torrisi

    (@alessio91)

    Hi there,
    I did a custom plugin to satisfy your request, please download it at following link.
    https://we.tl/t-XBRsCUmpmg

    Edit the plugin file and set your param value, currently set at “my-filter”.

    Once the plugin is active, the customization works.

    I hope you can appreciate my contribute.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can we rename the url parameters ?’ is closed to new replies.