Filters the default toggle HTML code.

You can use this filter if you need a custom toggle button. ]

Using a custom toggle button may lead to unexpected behaviour. This should be used by expert users.

Default toggle code is :

<div class="jfaq--toggle-wrap">
    <div class="jfaq--toggle"></div>

Usage example :

add_filter( 'joli_faq_seo_toggle_html', function($toggle_html){
    //Outputs a custom toggle button
    return '<div class="my-custom-toggle"></div>';
Was this page helpful?