Below is a sample code snippet demonstrating the tocer_render_toc_args
hook. This example serves as a base for your specific needs, so you may need to modify it accordingly to achieve the desired results.
add_filter('tocer_render_toc_args', function($args){
$args['header_title'] = 'Translated Title';
return $args;
});
If you set a responsive title, You need edit more:
$args['tablet']['header_title'] = 'On Tablet Title';
$args['mobile']['header_title'] = 'On Mobile Title';
Leave a Reply