Created
May 2, 2019 16:21
-
-
Save Pross/4d9cd4f2bf53c757e91da48f13052b42 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // ignore this line, its only to make highlighting work | |
add_filter( 'fl_builder_render_module_content', function( $out, $module ) { | |
if ( 'heading' === $module->slug ) { | |
$string = $out; | |
$find = ' '; | |
$replace = ' '; | |
$out = strrev( preg_replace( strrev( "/$find/" ), strrev( $replace ), strrev( $string ), 1 ) ); | |
} | |
return $out; | |
}, 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment