WordPress at Your Fingertips
function is not described

WC_API_Resource::is_deletable() protected WC 2.1

Checks if the given post is deletable by the current user

{} It's a method of the class: WC_API_Resource{}

No Hooks.

Return

true|false.

Usage

// protected - for code of main (parent) or child class
$result = $this->is_deletable( $post );
$post *(WP_Post int) (required)*

Notes

Changelog

Since 2.1 Introduced.

Code of WC_API_Resource::is_deletable() WC 5.6.0

protected function is_deletable( $post ) {

	return $this->check_permission( $post, 'delete' );
}