Tribe__Events__Pro__Editor__Meta::unhook()

Unsubscribes the instance from the actions and filters it subscribed to in the hook method.


Return

(void) The method will unsubscribe the instance from all the hooks it subscribed to.


Top ↑

Source

File: src/Tribe/Editor/Meta.php

	public function unhook(): void {
		remove_filter( 'get_post_metadata', [ $this, 'fake_blocks_response' ], 15 );
		remove_filter( 'get_post_metadata', [ $this, 'fake_recurrence_description' ], 15 );
		remove_action( 'deleted_post_meta', [ $this, 'remove_recurrence_meta' ] );
		remove_filter( 'tribe_events_pro_show_recurrence_meta_box', [ $this, 'show_recurrence_classic_meta' ] );
		remove_filter( 'tribe_events_pro_split_redirect_url', [ $this, 'split_series_link' ] );
	}

Top ↑

Changelog

Changelog
Version Description
6.0.0 Introduced.