apply_filters( "woocommerce_rest_{$this->post_type}_trashable", boolean $supports_trash, WP_Post $post )

Filter whether an item is trashable.


Description Description

Return false to disable trash support for the item.


Parameters Parameters

$supports_trash

Whether the item type support trashing.

$post

The Post object being considered for trashing support.


Top ↑

Source Source

File: includes/rest-api/Controllers/Version3/class-wc-rest-posts-controller.php



Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.