public static function register_non_api_users_with_api_cron_per_property($url, $api_user_id)
 {
     $property_id = DispletRetsIdxRewriteModel::get_property_id_from_url($url);
     if (!empty($property_id)) {
         wp_schedule_single_event(time(), 'displetretsidx_register_non_api_users_with_api_cron_per_property_at_api', array($api_user_id, $property_id));
     }
 }
 public static function new_user_cron_jobs($args)
 {
     extract($args);
     update_user_meta($user_id, 'displet_lead', true);
     update_user_meta($user_id, 'displet_agent_id', $assigned_agent_id);
     update_user_meta($user_id, 'displet_lender_id', $assigned_lender_id);
     update_user_meta($user_id, 'first_name', $first_name);
     update_user_meta($user_id, 'last_name', $last_name);
     update_user_meta($user_id, 'nickname', ucwords($name));
     update_user_meta($user_id, 'displet_phone', $phone);
     update_user_meta($user_id, 'displet_realtor', $realtor);
     update_user_meta($user_id, 'displet_registration_url', $url);
     update_user_meta($user_id, 'displet_registration_upstream_url', $upstream_url);
     update_user_meta($user_id, 'displet_last_hash', $last_hash);
     DispletRetsIdxLeadsController::maybe_do_austin_home_value_new_user_jobs($user_id, $user_address, $user_address_time);
     $zap_user = array('came_from' => $upstream_url, 'email' => $email, 'first_name' => $first_name, 'last_name' => $last_name, 'name' => $name, 'phone' => $phone, 'registered_at' => $url, 'user_profile_url' => admin_url('admin.php?page=displet-lead-manager&user_id=' . $user_id), 'website' => home_url());
     DispletRetsIdxUsersController::send_to_zapier($zap_user, 'registration');
     $api_agent_id = !empty($assigned_agent_id) ? get_user_meta($assigned_agent_id, self::$_meta_keys['agent']['api_id'], true) : false;
     $api_user_id = DispletRetsIdxUsersApiController::create_user($email, $first_name, $last_name, $phone, $api_agent_id);
     if (!empty($api_user_id)) {
         update_user_meta($user_id, 'displet_api_user_id', $api_user_id);
         $property_id = DispletRetsIdxRewriteModel::get_property_id_from_url($url);
         DispletRetsIdxUsersApiController::update_user_property_views($api_user_id, $property_id);
         do_action('displetretsidx_post_lead_assigned_api_user_id', $user_id, $api_user_id);
     }
     do_action('displetretsidx_post_lead_registration_cron_jobs', $user_id);
 }