Skip to content

Commit

Permalink
更新 functions.php
Browse files Browse the repository at this point in the history
  • Loading branch information
happykl-cn committed Oct 3, 2023
1 parent de20416 commit c1a8f62
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@
include_once('inc/fun/core.php');
include_once('gutenberg/index.php');



/* 解析<pre>标签 小恐龙“太好拉”注: 此处特别感谢阿云的技术支持*/
function pre_tag_fix($content){
$pattern = '/\[pre\](.*?)\[\/pre\]/s';
$replacement = '<pre>$1</pre>';
$content = preg_replace($pattern, $replacement, $content);
return $content;
}
add_filter('the_content', 'pre_tag_fix', 100);

//去除感谢使用wordpress创作
if (pk_is_checked('hide_footer_wp_t')) {
function my_admin_footer_text()
Expand Down

0 comments on commit c1a8f62

Please sign in to comment.