update_list_member() public méthode

public update_list_member ( $list_id, $email_address, array $args ) : object
$list_id
$email_address
$args array
Résultat object
 /**
  *
  * @param string $list_id
  * @param string $email_address
  *
  * @return boolean
  */
 public function list_unsubscribe($list_id, $email_address)
 {
     $this->reset_error();
     try {
         $this->api->update_list_member($list_id, $email_address, array('status' => 'unsubscribed'));
     } catch (MC4WP_API_Resource_Not_Found_Exception $e) {
         // if email wasn't even on the list: great.
         return true;
     } catch (MC4WP_API_Exception $e) {
         $this->error_code = $e->getCode();
         $this->error_message = $e;
         return false;
     }
     return true;
 }