Tribe__Events__Pro__Editor__Meta::remove_recurrence_meta( $meta_id,  $object_id,  $meta_key )

Removes the meta keys that maps into the classic editor when the _EventRecurrence is removed.


Parameters

$meta_id

(Required)

$object_id

(Required)

$meta_key

(Required)


Top ↑

Source

File: src/Tribe/Editor/Meta.php

	public function remove_recurrence_meta( $meta_id, $object_id, $meta_key ) {
		if ( '_EventRecurrence' !== $meta_key ) {
			return;
		}
		/** @var Tribe__Events__Pro__Editor__Recurrence__Blocks_Meta $blocks_meta */
		$blocks_meta = tribe( 'events-pro.editor.recurrence.blocks-meta' );
		delete_post_meta( $object_id, $blocks_meta->get_rules_key() );
		delete_post_meta( $object_id, $blocks_meta->get_exclusions_key() );
	}

Top ↑

Changelog

Changelog
Version Description
4.5 Introduced.