Tribe__Customizer::load_section( object $section )
Loads a Section to the Customizer on The Events Calendar’s Panel
Contents
Parameters
- $section
-
(object) (Required) An Object that extends the Abstract
Tribe__Customizer__Section
Return
(bool)
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;
}
Changelog
| Version | Description |
|---|---|
| 4.4 | Introduced. |