Astra_Customizer_Sanitizes::sanitize_spacing( number $val )

Sanitize Spacing


Description


Parameters

$val

(number) (Required) Customizer setting input number.


Return

(number) Return number.


Source

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

		public static function sanitize_spacing( $val ) {

			foreach ( $val as $key => $value ) {
				$val[ $key ] = ( is_numeric( $val[ $key ] ) && $val[ $key ] >= 0 ) ? $val[ $key ] : '';
			}

			return $val;
		}

Changelog

Changelog
Version Description
1.0.6 Introduced.

User Contributed Notes

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