Reply To: Just updated. Can I role back?

Home Forums Front End PM PRO Just updated. Can I role back? Reply To: Just updated. Can I role back?

Craig Tucker

Taking a closer look. The function that I am using to insert a message upon submission of a Gravity Forms object apparently is not including me as a participant in the discussion now. So it posts to my patient but I am not included as a participant. This is the code that I am using for my function:

function returning_client($user_id){
// the wp meta_user field we are looking for
global $wpdb;
$current_redirect_value = get_user_meta( $user_id, ‘payment’, true );
update_user_meta( $user_id, ‘renew’, date(“Y-m-d”, strtotime(“-1 years”)));
if ($current_redirect_value == “returning”){
$message = array(
‘message_title’ => ‘IMPORTANT! It is time to update your information.’,
‘message_content’ => ‘<p>Welcome Back!</p>,
‘message_to_id’ => $user_ID,
$override = array(
‘post_author’ => 1,
//Post message in Frontend PM
$message_id = fep_send_message( $message, $override );

What would I need to add given your recent updates so that I am posted as a participant in this message?