WC_API_Resource::is_editable( WP_Post|int $post )
Checks if the given post is editable 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_editable( $post ) { return $this->check_permission( $post, 'edit' ); }
Changelog Changelog
Version | Description |
---|---|
2.1 | Introduced. |