Save
This commit is contained in:
@@ -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' );
|
||||
Reference in New Issue
Block a user