``` function replace_text_wps($text) { $replace = array( //开始添加关键词 '在这里输入关键词' => '<a href="https://gitcafe.net/" rel="bookmark" title="乐趣公园">在这里输入关键词</a>', '关键词' => '<a href="https://gitcafe.net/" rel="bookmark" title="说明">关键词</a>' //添加关键词结束 ); $text = str_replace(array_keys($replace), $replace, $text); return $text; } add_filter('the_content', 'replace_text_wps'); ```