Skip to content

Instantly share code, notes, and snippets.

View rickalee's full-sized avatar

Ricky Lee Whittemore rickalee

View GitHub Profile
@rickalee
rickalee / functions.php
Last active October 24, 2024 18:22
block_editor_settings_all
<?php
/**
* Enable Automatic Anchor Tags Generation for Headings
*/
function enable_block_anchors( $settings, $context ) {
// Enable anchor generation
$settings['generateAnchors'] = true;
return $settings;
}