Use this filter to customize the slide out toggle button.
The output must be HTML or plain text.
Arguments:
$html_icon: The selected icon from the settings as html.
In the following example, we will add a “CONTENTS” text that will show below the icon.
add_filter('jtoc_slide_out_toggle_html', function ($html_icon) { //Returns the selected icon & some custom HTML return $html_icon . '<p style="margin:0;padding:0 10px;font-size:10px;font-weight:bold;">CONTENTS</p>'; });