Reply To: Extra setting send mail / sms


Home Forums Front End PM PRO Extra setting send mail / sms Reply To: Extra setting send mail / sms

#17512
Shamim Hasan
Keymaster

Use like

add_action( 'transition_post_status', function( $new_status, $old_status, $post ) {
    if ( 'fep_announcement' != $post->post_type ) {
	return;
    }
    update_post_meta( $post->ID, '_fep_email_sent', time() );
}, 10, 3 );