Inventory_Presser_Plugin::maybe_force_delete( int $post_id )

Action hook callback. Prevents vehicles from lingering in the Trash after they’ve been deleted if a plugin setting dictates such behavior.


Parameters Parameters

$post_id

(int) (Required)


Top ↑

Return Return

(void)


Top ↑

Source Source

File: inventory-presser.php

	}

	/**
	 * Action hook callback. Prevents vehicles from lingering in the Trash after
	 * they've been deleted if a plugin setting dictates such behavior.
	 *
	 * @param  int $post_id
	 * @return void
	 */
	public function maybe_force_delete( $post_id ) {
		// is the post a vehicle?
		if ( INVP::POST_TYPE !== get_post_type( $post_id ) ) {
			return;
		}