• Resolved toates

    (@toates)


    Hi,

    I noticed the following in the readme.

    Enhancement: Added hook cm_typesense_additional_config to preserve search item on tab change

    Do you have an example of how to use this hook to preserve search items when switching tabs?

    Thanks!

Viewing 1 replies (of 1 total)
  • Thread Starter toates

    (@toates)

    I got it figured out. In case anyone else needs this info. The below filter sets the preserve_search value to true so the entered search parameter is preserved when switching tab/collections.

    	add_filter( 'cm_typesense_additional_config', function( $config ) {
    $config['preserve_search'] = true;
    return $config;
    } );
    • This reply was modified 7 months ago by toates.
Viewing 1 replies (of 1 total)

The topic ‘cm_typesense_additional_config hook’ is closed to new replies.