Automattic\WooCommerce\Internal\Caches

ProductVersionStringInvalidator::handle_trashed_postpublicWC 10.5.0

Handle the trashed_post hook.

Method of the class: ProductVersionStringInvalidator{}

No Hooks.

Returns

null. Nothing (null).

Usage

$ProductVersionStringInvalidator = new ProductVersionStringInvalidator();
$ProductVersionStringInvalidator->handle_trashed_post( $post_id ): void;
$post_id(int) (required)
The post ID.

Changelog

Since 10.5.0 Introduced.

ProductVersionStringInvalidator::handle_trashed_post() code WC 10.7.0

public function handle_trashed_post( $post_id ): void {
	$this->handle_trashed_or_untrashed_post( (int) $post_id );
}