经测试代码如下:
<?PHP
/**
* 获取来源地址
*
* @param
* @arrange (512.笔记) jb51.cc
**/
function referrer_link() {
$refer = $_SERVER['HTTP_REFERER'];
if ($refer) {
echo '<a href="' . $refer . '">Go back</a>';
}
}
add_action('thesis_hook_before_content','referrer_link');
/*** 来自:编程之家 jb51.cc(jb51.cc) ***/
原文链接:https://www.f2er.com/php/528778.html