感谢paul/karpstrucking的回复!
我试着用这个抄本的例子。。用于将字段发送到我的邮箱,但此操作未运行。。。当我发布时,我需要很少的样本进行测试。。
我把这一块放在theme的函数上。php。。可以吗?
函数my\\u project\\u updated\\u send\\u email($post\\u id){
// If this is just a revision, don\'t send the email.
if ( wp_is_post_revision( $post_id ) )
return;
$post_title = get_the_title( $post_id );
$post_url = get_permalink( $post_id );
$subject = \'A post has been updated\';
$message = "A post has been updated on your website:\\n\\n";
$message .= $post_title . ": " . $post_url;
// Send email to admin.
wp_mail( \'[email protected]\', $subject, $message );
}添加操作(\'save\\u post\',\'my\\u project\\u updated\\u send\\u email\')