Astra_Customizer_Sanitizes::sanitize_toggle_control( bool $val )

Sanitize Toggle Control param.


Description


Parameters

$val

(bool) (Required) for True|False.


Return

(bool) True|False


Source

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

		public static function sanitize_toggle_control( $val ) {
			// returns true if checkbox is checked.
			return ( isset( $val ) && is_bool( $val ) ? $val : '' );
		}

Changelog

Changelog
Version Description
3.1.0 Introduced.

User Contributed Notes

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