Home / Admin / Use a custom ID prefix in Table of Content block
Duplicate Snippet

Embed Snippet on Your Site

Use a custom ID prefix in Table of Content block

This snippet can be used to add a custom ID prefix for the Table of Content block.

Replace 'mysite-' with the desired prefix.

<10
Code Preview
php
<?php
add_filter( 'aioseo_toc_hash_prefix', function( $prefix ) {
    return 'mysite-';
} );

Comments

Add a Comment