返信先: タグの変更

フォーラム 使い方全般 タグの変更 返信先: タグの変更

#73170
ecoken
参加者

文字列(htmlタグ)を取り出してdivに変換してみました。

add_filter( ‘usces_filter_tax_guid’, ‘my_filter_tax_guid’, 10, 2 );
function my_filter_tax_guid( $str, $tax_rate ){
// str_replace ( ‘検索文字列’, ‘置換え文字列’, ‘対象文字列’ );
$str = str_replace( ‘em’, ‘div’, $str );
echo $str;
}