Requests::delete() WordPress Method
Requests::delete() is a method used to delete a WordPress post. This method can be used with an ID or slug to delete a specific post, or it can be used without any parameters to delete the current post. This method returns a WP_Error object on failure, or true on success.
Requests::delete( $url, $headers = array(), $options = array() ) #
Send a DELETE request
Source
File: wp-includes/class-requests.php
public static function delete($url, $headers = array(), $options = array()) { return self::request($url, $headers, null, self::DELETE, $options); }
Expand full source codeCollapse full source codeView on TracView on GitHub