最近の記事
- 固定された記事
- 固定された記事
ganohrs-toggle-shortcodeで0.0.1にsufix="101"として定義していたものを0.0.2で自動的にsufix="1"等へ読み替えさせるコード
function replace_togglecode_over_100($the_content) { $the_content = preg_replace( '#(\\[toggle[^\\]]+suffix[ ]*=[\\\'"]?)10([1-9])([\\\'"]?[^\\]]*\\])#' , '\\1\\2\\3' , $the_content ); return $the_content;}add_filter('the_content', 're