Tribe__Events__Community__Main::user_can_edit_their_submissions( int $post_id )
Returns whether the current user can edit their submission.
Topics
Parameters #
- $post_id
-
(int) (Required) The current post id.
Return #
(boolean)
Source #
File: src/Tribe/Main.php
public function user_can_edit_their_submissions( $post_id ) { return $this->allowUsersToEditSubmissions && ( get_current_user_id() == get_post( $post_id )->post_author ); }
Changelog #
Version | Description |
---|---|
4.8.11.1 | Introduced. |