Tribe__Customizer::load_section( object $section )

Loads a Section to the Customizer on The Events Calendar’s Panel


Parameters

$section

(object) (Required) An Object that extends the Abstract Tribe__Customizer__Section


Top ↑

Return

(bool)


Top ↑

Source

File: src/Tribe/Customizer.php

	public function load_section( $section ) {
		// You can only add a section if it extends the abstract Section
		if ( ! is_object( $section ) || ! in_array( 'Tribe__Customizer__Section', class_parents( $section ) ) ) {
			return false;
		}

		// Add the Section
		// Enforces the usage of `$instance->ID`
		$this->sections_class[ $section->ID ] = $section;

		return true;
	}

Top ↑

Changelog

Changelog
Version Description
4.4 Introduced.