• Home
  • Knowledgebase
  • DevDocs
  • Translations
  • Support
  • Live Preview

logo DevDocs

By The Events Calendar
Filter by type:
Skip to content
Filter by type:
Search
Browse: Home / Classes / Tribe__Tickets_Plus__Commerce__WooCommerce__Orders__Table / Tribe__Tickets_Plus__Commerce__WooCommerce__Orders__Table::ajax_user_can()
Product: Event Tickets Plus

Tribe__Tickets_Plus__Commerce__WooCommerce__Orders__Table::ajax_user_can()

Checks the current user’s permissions


Source

File: src/Tribe/Commerce/WooCommerce/Orders/Table.php

	public function ajax_user_can() {
		$post_type = get_post_type_object( $this->screen->post_type );

		return ! empty( $post_type->cap->edit_posts ) && current_user_can( $post_type->cap->edit_posts );
	}//end ajax_user_can

Expand full source code Collapse full source code

The Events Calendar
  • Home
  • Products
  • Blog
  • Support
© 2026 The Events Calendar Terms and Conditions Privacy