Hooks::filter_customizer_sections( TribeEventsCommunityViewsV2array<string,array<string,array>> $sections, Tribe___Customizer $customizer )

Filters the currently registered Customizer sections to add or modify them.


Parameters #

$sections

(<span class="TribeEventsCommunityViewsV2array<string,array<string,arrayTribeEventsCommunityViewsV2array<string,array<string,array<string,int|float|>>">TribeEventsCommunityViewsV2string>>>) (Required) The registered Customizer sections.

$customizer

(Tribe___Customizer) (Required) The Customizer object.


Top ↑

Return #

(TribeEventsCommunityViewsV2array<string,array<string,array<string,int|float|TribeEventsCommunityViewsV2string>>>) The filtered sections.


Top ↑

Source #

File: src/Tribe/Views/V2/Hooks.php

	public function filter_customizer_sections( $sections, $customizer ) {
		if ( ! ( is_array( $sections ) && $customizer instanceof \Tribe__Customizer ) ) {
			return $sections;
		}

		return $this->container->make( Customizer::class )->filter_sections( $sections, $customizer );
	}

Top ↑

Changelog #

Changelog
Version Description
4.8.3 Introduced.