Provider::handle_trashed_provisional_posts( TECEvents_ProCustom_TablesV1EventsEvent_Cleanernumeric $post_id )

Handles all provisional posts that are trashed.


Parameters

$post_id

(TECEvents_ProCustom_TablesV1EventsEvent_Cleanernumeric) (Required)


Top ↑

Source

File: src/Events_Pro/Custom_Tables/V1/Events/Event_Cleaner/Provider.php

	public function handle_trashed_provisional_posts( $post_id ) {
		if ( ! is_numeric( $post_id ) ) {
			return;
		}
		// Don't recurse
		remove_action( 'trashed_post', [ $this, 'handle_trashed_provisional_posts' ] );
		tribe( Event_Cleaner::class )->handle_trashed_provisional_post( (int) $post_id );
		add_action( 'trashed_post', [ $this, 'handle_trashed_provisional_posts' ] );
	}

Top ↑

Changelog

Changelog
Version Description
6.0.12 Introduced.