Tribe__Events__REST__V1__Endpoints__Single_Venue::can_delete()
Whether the current user can delete posts of the type managed by the endpoint or not.
Return
(bool)
Source
File: src/Tribe/REST/V1/Endpoints/Single_Venue.php
public function can_delete() {
$cap = get_post_type_object( Tribe__Events__Main::VENUE_POST_TYPE )->cap->delete_posts;
return current_user_can( $cap );
}
Changelog
| Version | Description |
|---|---|
| 4.6 | Introduced. |