Tribe__Events__Aggregator__Record__Abstract::delete( bool $force = false )

Delete record


Parameters

$force

(bool) (Optional) Whether to force the deletion or not.

Default value: false


Top ↑

Return

(WP_Post|false|null) — Post data on success, false or null on failure.


Top ↑

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 );
	}