Tribe__Events__Main::addEventBox()

Callback for adding the Meta box to the admin page


Source

File: src/Tribe/Main.php

		public function addEventBox() {
			add_meta_box(
				'tribe_events_event_details',
				$this->plugin_name,
				array( $this, 'EventsChooserBox' ),
				self::POSTTYPE,
				'normal',
				'high',
				array(
					'__back_compat_meta_box' => tribe( 'tec.gutenberg' )->should_display() || ! class_exists( 'Tribe__Events__Pro__Main' ),
				)
			);

			add_meta_box(
				'tribe_events_event_options',
				sprintf( esc_html__( '%s Options', 'the-events-calendar' ), $this->singular_event_label ),
				array( $this, 'eventMetaBox' ),
				self::POSTTYPE,
				'side',
				'default'
			);

			add_meta_box(
				'tribe_events_venue_details',
				sprintf( esc_html__( '%s Information', 'the-events-calendar' ), $this->singular_venue_label ),
				array( $this, 'VenueMetaBox' ),
				Tribe__Events__Venue::POSTTYPE,
				'normal',
				'high'
			);

			if ( ! class_exists( 'Tribe__Events__Pro__Main' ) ) {
				remove_meta_box( 'slugdiv', Tribe__Events__Venue::POSTTYPE, 'normal' );
			}

			add_meta_box(
				'tribe_events_organizer_details',
				sprintf( esc_html__( '%s Information', 'the-events-calendar' ), $this->singular_organizer_label ),
				array( $this, 'OrganizerMetaBox' ),
				Tribe__Events__Organizer::POSTTYPE,
				'normal',
				'high'
			);
		}