Tribe__Events__Aggregator__Settings::handle_meetup_security_key( $meetup_authorized )

Handle Checking if there is a Security Key and Saving It


Parameters

$eb_authorized

(object) (Required) object from EA service for Meetup Validation


Top ↑

Return

(bool)


Top ↑

Source

File: src/Tribe/Aggregator/Settings.php

	public function handle_meetup_security_key( $meetup_authorized ) {

		// key is sent on initial authorization and save it if we have it
		if ( ! empty( $meetup_authorized->data->secret_key ) ) {
			tribe_update_option( 'meetup_security_key', esc_attr( $meetup_authorized->data->secret_key ) );

			// If we have a Meetup OAuth flow security key, then we can remove the old Meetup API key, if any.
			tribe_update_option( 'meetup_api_key', '' );

			return true;
		}


		if ( $this->has_meetup_security_key() ) {
			return true;
		}

		return false;
	}

Top ↑

Changelog

Changelog
Version Description
4.9.6 Introduced.