Tribe__Events__Capabilities::remove_all_caps()

Remove capabilities for events and related post types from default roles


Return

(void)


Top ↑

Source

File: src/Tribe/Capabilities.php

	public function remove_all_caps() {
		foreach ( array( 'administrator', 'editor', 'author', 'contributor', 'subscriber' ) as $role ) {
			$this->remove_post_type_caps( Tribe__Events__Main::POSTTYPE, $role );
			$this->remove_post_type_caps( Tribe__Events__Main::VENUE_POST_TYPE, $role );
			$this->remove_post_type_caps( Tribe__Events__Main::ORGANIZER_POST_TYPE, $role );
			$this->remove_post_type_caps( Tribe__Events__Aggregator__Records::$post_type, $role );
		}
	}

Top ↑

Changelog

Changelog
Version Description
5.1.1 Introduced.