PHPcode14">PHP/*Plugin Name: WPJAM HTML Widget TitleDescription: 让 Widget 标题支持简单的 HTML 标签Version: 0.1Author: Denis*/add_filter( 'widget_title','wpjam_html_widget_title' );function wpjam_html_widget_title( $title ) { //HTML tag opening/closing brackets $title = str_replace( '[','<',$title ); $title = str_replace( '[/','',$title );
//
$title = str_replace( 's]','h3>',$title ); // $title = str_replace( 'e]','em>',$title );return $title;}?>