wordpress - 在 wordpress 中评论后重定向到 url 链接
问题描述
我有这个代码,但它不工作。
add_action('comment_post_redirect', 'your_redirect_function');
// A function that redirects your users after they have commented.
function your_redirect_function ($location, $comment) {
// Here all you need to do is return the url of your target page.
$page = 'http://www.stackoverflow.com';
return $page;
}
有什么建议么?
解决方案
推荐阅读
- vhdl - 了解状态机中的干扰锁存器
- single-sign-on - SAML 证书,私钥
- java - 将 localDate 与 UTC 一起使用
- tcl - 我正在尝试执行代码并收到错误“孩子被杀死的分段违规”并且程序停止工作
- python - 嵌套函数调用总是在一起
- vb.net - 我不明白这个 datagridview 新操作调用命令的语法应该是什么
- python - 如何在 Django ORM 中随时间存储数据?
- java - 单个应用程序中的两个身份验证服务
- android - 更新 MACBook Pro 后 Android Studio 自动关闭 - ERROR_CGDataProviderCreateWithData_BufferIsNotReadable+0x10
- c# - 如何从链接下给出的 SharePoint 列表中读取文件内容