Esempio n. 1
0
 /**
  * Delete a queue item
  *
  * @since 4.1
  * @param int $id
  * @return array
  */
 public function delete_queue_item($id)
 {
     $id = $this->validate_request($id);
     // Return the validate error.
     if (is_wp_error($id)) {
         return $id;
     }
     do_action('fue_api_delete_queue', $id, $this);
     $this->scheduler->delete_item($id);
     $this->server->send_status('202');
     return array('message' => __('Deleted queue item', 'follow_up_emails'));
 }