astra_get_font_extras( array $config, string $setting, mixed $unit = false )

Function which will return CSS for font-extras control.


Description

It includes – line-height, letter-spacing, text-decoration, font-style.


Parameters

$config

(array) (Required) contains extra font settings.

$setting

(string) (Required) basis on this setting will return.

$unit

(mixed) (Optional) Unit.

Default value: false


Source

File: inc/extras.php

function astra_get_font_extras( $config, $setting, $unit = false ) {
	$css = isset( $config[ $setting ] ) ? $config[ $setting ] : '';

	if ( $unit && $css ) {
		$css .= isset( $config[ $unit ] ) ? $config[ $unit ] : '';
	}

	return $css;
}

Changelog

Changelog
Version Description
4.0.0 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.