This commit is contained in:
2026-03-09 15:46:57 +01:00
parent 530a6f0c27
commit 258bd71644
10 changed files with 581 additions and 1 deletions

View File

@@ -307,4 +307,12 @@ function he_garage_map_shortcode($atts = [], $content = null, $tag = '') {
return ob_get_clean();
}
add_shortcode('garage_map', 'he_garage_map_shortcode');
add_shortcode('garage_map', 'he_garage_map_shortcode');
function he_replace_m2_with_superscript( $content ) {
return preg_replace( '/\bm2\b/', 'm²', $content );
}
add_filter( 'the_content', 'he_replace_m2_with_superscript' );
add_filter( 'the_title', 'he_replace_m2_with_superscript' );
add_filter( 'the_excerpt', 'he_replace_m2_with_superscript' );
add_filter( 'widget_text', 'he_replace_m2_with_superscript' );