File Editor
Directories:
.. (Back)
Documentation
Endpoints
Headers
Validator
Files:
Auth.php
EA_Messages.php
Main.php
Messages.php
Post_Repository.php
Settings.php
System.php
Create New File
Create
Edit File: Auth.php
<?php class Tribe__Events__REST__V1__Auth { public function can_post_event() { $post_type = get_post_type_object( Tribe__Events__Main::POSTTYPE ); return current_user_can( $post_type->cap->create_posts ); } }
Save Changes
Rename File
Rename