导航
用户登录
最新blog文章
搜索
在线用户
目前共有 0 位用户和 1 位游客在线。
相关链接:
wp add_action
由 guoshuang 于 周二, 02/09/2010 - 10:11 提交。
由 guoshuang 于 周二, 02/09/2010 - 10:11 提交。
function email_friends($post_ID) {
$friends = 'bob@example.org, susie@example.org';
mail($friends, "sally's blog updated" , 'I just put something on my blog: http://blog.example.com');
return $post_ID;
}
add_action('publish_post', 'email_friends');
function echo_comment_id($comment_ID) {
echo "I just received $comment_ID";
}
add_action('comment_id_not_found','echo_comment_id', 10, 1);
- guoshuang 的blog
- 要发表评论,请先登录 或 注册
最新评论
17 小时 47 分钟 前
2 天 16 小时 前
4 天 17 小时 前
5 天 9 小时 前
6 天 9 小时 前
1 周 15 小时 前
1 周 20 小时 前
1 周 20 小时 前
1 周 20 小时 前
1 周 20 小时 前