Tribe__Events__Community__Main::user_can_edit_their_submissions( int $post_id )

Returns whether the current user can edit their submission.


Parameters

$post_id

(int) (Required) The current post id.


Top ↑

Return

(boolean)


Top ↑

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 );

		}

Top ↑

Changelog

Changelog
Version Description
4.8.11.1 Introduced.