Currently, there are three filters: one to toggle JS animation on or off, one to control critical CSS output, and one to control the default FAQ markup.
JS Animation (jQuery Only)
By default, animation is set to true. This will add a slide animation to showing/hiding the FAQ. To remove JS animation and rely on classes to do your state-changing, add the following to your functions.php file:
Critical CSS
You can modify the CSS output using the following filter (styles are minified on the front-end):
Default Markup
The following filter accepts 3 parameters:
- $template: Full string of HTML to output.
- $question: The title of the FAQ, usually a question.
- $answer: The content of the FAQ, usually the answer.