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)