方法一:
粘贴以下代码到主题的functions.php文件即可实现wordpress链接转跳功能。
展现方式为:https://www.uoo2.com/?go=http://www.baidu.com这种形式转跳。
add_action('wp_head','ruikeedu_gourl');functionruikeedu_gourl(){global$pagenow;if(is_home&&$pagenow=='index.php'){$location=$_GET['go'];if($location!=""){wp_redirect(esc_url_raw($location),302);exit;}}}