Warnings::add_commerce_provider_warning()

Add Provider missing warning for tickets.

Contents


Source

File: src/Tribe/Editor/Warnings.php

	public function add_commerce_provider_warning() {
		$available_modules = array_diff_key( \Tribe__Tickets__Tickets::modules(), [ 'Tribe__Tickets__RSVP' => true ] );

		if ( count( $available_modules ) > 0 ) {
			return;
		}

		$this->render_notice( $this->get_commerce_provider_missing_warning_message() );
	}

Top ↑

Changelog

Changelog
Version Description
5.6.2 Added 'provider_warning' as an $additionalClasses.
5.0.4 Introduced.