Introduction
The GFAPI::delete_entry() method is used to permanently delete an entry.
Method Overview
Source Code
public static function delete_entry( $entry_id ) {}
This method is located in /includes/api.php.
Parameters
| Param | Type | Description |
|---|---|---|
| $entry_id | integer | The ID of the entry to be deleted. |
Returns
Boolean, true on success, or a WP_Error instance if an error occurs.
Usage Example
$result = GFAPI::delete_entry( $entry_id );