Last active
November 27, 2019 04:26
-
-
Save Rocky-Mehta88/0a9107a2684c3944ceece02d4f6928a3 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 | |
/** | |
* Author: Rocky Mehta | |
* Link: https://rocky-mehta.com/ | |
* Email: rocky.mehta88@gmail.com | |
*/ | |
/* Enable html Span tag support in WordPress widget title*/ | |
add_filter( 'widget_title', 'html_tag_support_widget_title_function' ); | |
function html_tag_support_widget_title_function( $title ) { | |
$title = str_replace( '[span]', '<span>', $title ); | |
$title = str_replace( '[/span]', '</span>', $title ); | |
return $title; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment