需要在发布内容之前更改发布内容。我可以覆盖原生发布功能,但不想这样做。wordpress - 动作钩'pre published post'?
我希望做的是一样的东西:
add_action('before_publish_post','my_func');
function my_func($content){
$content = "new content";
return $content;
}
我有看“publish_post”挂钩,但这种只允许AFER已公布我改文章内容,不是之前。
任何帮助,将不胜感激, 欢呼
这是一个。欢呼;) – 2011-02-22 05:28:24