Warnings::show_recurring_event_warning_message( int $post_id )

Show the Recurring Event warning message.


Parameters

$post_id

(int) (Required) Post ID.


Top ↑

Source

File: src/Tribe/Editor/Warnings.php

	public function show_recurring_event_warning_message( $post_id ) {
		if ( ! class_exists( 'Tribe__Events__Pro__Main' ) || ! class_exists( 'Tribe__Events__Main' ) ) {
			return;
		}

		if ( ! function_exists( 'tribe_is_recurring_event' ) ) {
			return;
		}

		if ( \Tribe__Events__Main::POSTTYPE != get_post_type( $post_id ) ) {
			return;
		}

		$this->render_notice( $this->get_recurring_event_warning_message(), 'info', '#tribe-recurrence-active', 'checked' );
	}

Top ↑

Changelog

Changelog
Version Description
5.6.7 Remove rendering the warning message for CE.
5.6.4 Remove dependency on #tribe-recurrence-active.
5.6.2 Added 'recurring_event_warning' as an $additionalClasses.
5.0.4 Introduced.