- October 6, 2021 at 1:50 am #35023
I would like to start working with the results templates but I am not sure which arguments are passed to the $s_options variable.
The documentation has details on $r, but not $s_options. (https://knowledgebase.ajaxsearchpro.com/hooks/templating/result-templating)
Can you please point me to where I can find it, or provide me with a description of its arguments?October 6, 2021 at 9:55 am #35030
It holds the current search instance settings. I would avoid using that if possible, as the search settings array keys often change when new options are incorporated and older ones get removed – therefore it is not documented.Best,
The full list of keys and default values you can find in the wp-content/plugins/ajax-search-pro/backend/settings/default_options.php file, from line 207 to 991.
If you are looking for a specific setting, let me know, I might be able to help.
If you like my products, don't forget to rate them on codecanyon :)
October 6, 2021 at 10:12 pm #35047
Oh wow. Yeah I found that file and thought it might be the one I was looking for, but it was far too daunting to consider tampering with it. Thanks for confirming that it is best left alone – I will investigate specific options if necessary and ask for help if it breaks anything. Still, it is interesting to look through to get a more comprehensive view of how expansive ASP is!
You must be logged in to reply to this topic.