WC_API_Resource::is_deletable( WP_Post|int $post )
Checks if the given post is deletable by the current user
Contents
Description Description
See also See also
Parameters Parameters
- $post
-
(Required)
Return Return
(bool)
Source Source
File: includes/legacy/api/v2/class-wc-api-resource.php
protected function is_deletable( $post ) { return $this->check_permission( $post, 'delete' ); }
Changelog Changelog
Version | Description |
---|---|
2.1 | Introduced. |