当(普通)用户创建帖子(提交审批)时,我该如何做
我目前拥有:
function emailinvestment( $new_status, $old_status, $post_id ) {
if ( $old_status != \'new\' && $new_status != \'pending\' ) {
// Do something (not working atm)
}
}
add_action(\'transition_post_status\',\'emailinvestment\', 10,3);
谢谢你看这个:)