WC_API_Resource::is_editable()
Checks if the given post is editable by the current user
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_editable( $post );
- $post(WP_Post|int) (required)
- -
Notes
Changelog
Since 2.1 | Introduced. |
WC_API_Resource::is_editable() WC API Resource::is editable code WC 8.7.0
protected function is_editable( $post ) { return $this->check_permission( $post, 'edit' ); }