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

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


Parameters

$sections

(<span class="TribeEventsFilterbarViewsV2_1array<string,array<string,arrayTribeEventsFilterbarViewsV2_1array<string,array<string,array<string,int|float|>>">TribeEventsFilterbarViewsV2_1string>>>) (Required) The registered Customizer sections.

$customizer

(Tribe___Customizer) (Required) The Customizer object.


Top ↑

Return

(TribeEventsFilterbarViewsV2_1array<string,array<string,array<string,int|float|TribeEventsFilterbarViewsV2_1string>>>) The filtered sections.


Top ↑

Source

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

	public function filter_customizer_sections( $sections, $customizer ) {
		_deprecated_function( __METHOD__, '5.2.0' );
		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
5.0.3 Introduced.