Tribe__Events__Aggregator__Service::disconnect_meetup_token()

Disconnect Meetup Token on EA


Return #

(stdClass|WP_Error)


Top ↑

Source #

File: src/Tribe/Aggregator/Service.php

	public function disconnect_meetup_token() {

		$args = $this->get_meetup_args();

		$response = $this->get( 'meetup/disconnect', $args );

		// If we have an WP_Error we return only CSV
		if ( is_wp_error( $response ) ) {
			return tribe_error( 'core:aggregator:invalid-meetup-token', array(), [ 'response' => $response ] );
		} else {
			delete_transient( self::$auth_transient_meetup );
		}

		return $response;
	}

Top ↑

Changelog #

Changelog
Version Description
4.9.6 Introduced.