Astra_Customizer_Sanitizes::sanitize_font_weight( mixed $input )

Sanitize Font weight


Description


Parameters

$input

(mixed) (Required) setting input.


Return

(mixed) setting input value.


Source

File: inc/customizer/class-astra-customizer-sanitizes.php

		public static function sanitize_font_weight( $input ) {

			$valid = array(
				'normal',
				'bold',
				'100',
				'200',
				'300',
				'400',
				'500',
				'600',
				'700',
				'800',
				'900',
			);

			if ( in_array( $input, $valid ) ) {
				return $input;
			} else {
				return 'normal';
			}
		}

User Contributed Notes

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