src/OwpUsers.inc.php
public function saveUserMetaDataItem($userID, $key_name, $key_value)
    {
        $query_sql = "
            REPLACE INTO tbl_users_meta_data
            SET
                tbl_users_meta_data.key_name = '" . $this->OwpDBMySQLi->escape((string)$key_name) . "',
                tbl_users_meta_data.userID = " . (int)$userID . ",
                tbl_users_meta_data.key_value = '" . $this->OwpDBMySQLi->escape((string)$key_value) . "',
                tbl_users_meta_data.updated_ts = SYSDATE()
        ";

        $userData = (boolean)$this->OwpDBMySQLi->query($query_sql);

        return $userData;

    }
public function saveUserMetaDataItem($userID, $key_name, $key_value)
    {
        $query_sql = "
            REPLACE INTO tbl_users_meta_data
            SET
                tbl_users_meta_data.key_name = '" . $this->OwpDBMySQLi->escape((string)$key_name) . "',
                tbl_users_meta_data.userID = " . (int)$userID . ",
                tbl_users_meta_data.key_value = '" . $this->OwpDBMySQLi->escape((string)$key_value) . "',
                tbl_users_meta_data.updated_ts = SYSDATE()
        ";

        $userData = (boolean)$this->OwpDBMySQLi->query($query_sql);

        return $userData;

    }
saveUserMetaDataItem

@method saveUserMetaDataItem($userID, $key_name, $key_value) Set user meta data
@access public
@param $userID
@param $key_name
@param $key_value
@return bool
@throws Exception

@author  Brian Tafoya <btafoya@briantafoya.com>
@version 1.0