Post Meta checked by default

Forums › Forums › Search & Filter Pro › Post Meta checked by default

Tagged: 

Viewing 2 posts – 1 through 2 (of 2 total)
  • Ross Moderator
    #38289

    Hi Steve

    Currently you can only change the defaults of a field by using this filter:

    https://www.designsandcode.com/documentation/search-filter-pro/action-filter-reference/#Filter_Input_Object

    Check the Gist linked in there for a really fully featured example.

    What you will want to do is change the defaults as linked in the Gist – the tricky part is then choosing under what conditions to force them to be defaulted – I guess this class might help –

    https://www.designsandcode.com/documentation/search-filter-pro/accessing-search-data/

    What you might want to do is check if anything has been filtered (the last link) and if not, setup the defaults you mention.

    Thanks

Viewing 2 posts – 1 through 2 (of 2 total)

Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.