Tribe__Events__Aggregator__Record__Abstract::delete( bool $force = false )
Delete record
Contents
Parameters
- $force
-
(bool) (Optional) Whether to force the deletion or not.
Default value: false
Return
(WP_Post|false|null) — Post data on success, false or null on failure.
Source
File: src/Tribe/Aggregator/Record/Abstract.php
public function delete( $force = false ) {
if ( $this->is_manual ) {
return tribe_error( 'core:aggregator:delete-record-failed', array( 'record' => $this ), array( $this->id ) );
}
return wp_delete_post( $this->id, $force );
}