When updating referred by, contacts or notes.
return $r;
}
+ public function updateLeadTime( $lead_id )
+ {
+ $this->wpdb->update(
+ GLM_MEMBERS_TRAVEL_PLUGIN_DB_PREFIX . 'leads',
+ array( 'updated' => date( 'Y-m-d H:i:s' ) ),
+ array( 'id' => $lead_id ),
+ array( '%s' ),
+ array( '%d' )
+ );
+ }
}
return $r;
}
+ public function updateLeadTime( $lead_id )
+ {
+ $this->wpdb->update(
+ GLM_MEMBERS_TRAVEL_PLUGIN_DB_PREFIX . 'leads',
+ array( 'updated' => date( 'Y-m-d H:i:s' ) ),
+ array( 'id' => $lead_id ),
+ array( '%s' ),
+ array( '%d' )
+ );
+ }
}
return $r;
}
+ public function updateLeadTime( $lead_id )
+ {
+ $this->wpdb->update(
+ GLM_MEMBERS_TRAVEL_PLUGIN_DB_PREFIX . 'leads',
+ array( 'updated' => date( 'Y-m-d H:i:s' ) ),
+ array( 'id' => $lead_id ),
+ array( '%s' ),
+ array( '%d' )
+ );
+ }
}
return $array;
}
+ public function updateLeadTime( $lead_id )
+ {
+ $this->wpdb->update(
+ GLM_MEMBERS_TRAVEL_PLUGIN_DB_PREFIX . 'leads',
+ array( 'updated' => date( 'Y-m-d H:i:s' ) ),
+ array( 'id' => $lead_id ),
+ array( '%s' ),
+ array( '%d' )
+ );
+ }
}
array( '%d', '%d' )
);
}
+ // Update the leads updated timestamp
+ $this->updateLeadTime( $lead_id );
+
// Redirect back to the edit page
wp_redirect( admin_url() . 'admin.php?page=glm-members-admin-menu-glm-travel&glm_action=index&option=edit&id=' . $lead_id . '#ui-id-3' );
exit;
'%s', // phone
)
);
+ // Update the leads updated timestamp
+ $this->updateLeadTime( $lead_id );
+
// Redirect back to the edit page
wp_redirect( admin_url() . 'admin.php?page=glm-members-admin-menu-glm-travel&glm_action=index&option=edit&id=' . $lead_id . '#ui-id-3' );
exit;
array( '%d' )
);
}
+ // Update the leads updated timestamp
+ $this->updateLeadTime( $lead_id );
+
wp_redirect( admin_url() . 'admin.php?page=glm-members-admin-menu-glm-travel&glm_action=index&option=edit&id=' . $lead_id . '#ui-id-7' );
break;
case 'add':
)
);
+ // Update the leads updated timestamp
+ $this->updateLeadTime( $lead_id );
+
}
// Redirect back to the edit page
wp_redirect( admin_url() . 'admin.php?page=glm-members-admin-menu-glm-travel&glm_action=index&option=edit&id=' . $lead_id . '#ui-id-7' );
array( '%d', '%d' )
);
}
+ // Update the leads updated timestamp
+ $this->updateLeadTime( $lead_id );
+
// Redirect back to the edit page
wp_redirect( admin_url() . 'admin.php?page=glm-members-admin-menu-glm-travel&glm_action=index&option=edit&id=' . $lead_id . '#ui-id-7' );
exit;
}
}
+ // Update the leads updated timestamp
+ $this->updateLeadTime( $lead_id );
+
wp_redirect( admin_url() . 'admin.php?page=glm-members-admin-menu-glm-travel&glm_action=index&option=edit&id=' . $lead_id . '#ui-id-5' );
exit;
break;