//限制评论字数
add_filter( 'preprocess_comment', 'minimal_comment_length' );
function minimal_comment_length( $commentdata ) {
$minimalCommentLength = 11;
if ( strlen( trim( $commentdata['comment_content'] ) ) < $minimalCommentLength )
{
wp_die( '抱歉,您输入电话不足,请至少输入 ' . $minimalCommentLength . ' 个字!' );
}
return $commentdata;
}
以上代码的返回值是return $commentdata;
我该如何在跳转后,设定跳转时间,并跳转到原页面,还有一个固定页面
在记忆中设置5秒后跳转页面的方法是:<meta http-equiv=”refresh” content=”5;url=http://www.seoyh.net”>
但是怎么将这个方法植入到这里面呢