Global_Elements::setup()

This method will be executed when the Class is Initialized.

Contents


Source

File: src/Tribe/Views/V2/Customizer/Section/Global_Elements.php

	public function setup() {
		parent::setup();

		/**
		 * Allows users and plugins to change the "small" font size multiplier.
		 *
		 * @since 5.9.0
		 *
		 * @param int $small_font_multiplier The multiplier for "small" font size.
		 *
		 * @return int The multiplier for "small" font size. This should be less than 1.
		 */
		$this->small_font_multiplier = apply_filters( 'tribe_customizer_small_font_size_multiplier', $this->small_font_multiplier );

		/**
		 * Allows users and plugins to change the "large" font size multiplier.
		 *
		 * @since 5.9.0
		 *
		 * @param int $large_font_multiplier The multiplier for "large" font size.
		 *
		 * @return int The multiplier for "large" font size. This should be greater than 1.
		 */
		$this->large_font_multiplier = apply_filters( 'tribe_customizer_large_font_size_multiplier', $this->large_font_multiplier );

		/**
		 * Allows users and plugins to change the minimum font size.
		 *
		 * @since 5.9.0
		 *
		 * @param int $min_font_size The enforced minimum font size.
		 *
		 * @return int The enforced minimum font size.
		 */
		$this->min_font_size = apply_filters( 'tribe_customizer_minimum_font_size', $this->min_font_size );

		/**
		 * Allows users and plugins to change the maximum font size.
		 *
		 * @since 5.9.0
		 *
		 * @param int $max_font_size The enforced maximum font size.
		 *
		 * @return int The enforced maximum font size.
		 */
		$this->max_font_size = apply_filters( 'tribe_customizer_maximum_font_size', $this->max_font_size );
	}

Top ↑

Changelog

Changelog
Version Description
5.9.0 Introduced.