llms_parse_bool( mixed $val )

Parse booleans


Description Description

Mostly used to parse yes/no bools stored in various meta data fields.


Parameters Parameters

$val

(mixed) (Required) Value to parse.


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/llms.functions.core.php

function llms_parse_bool( $val ) {
	return filter_var( $val, FILTER_VALIDATE_BOOLEAN );
}

Top ↑

Changelog Changelog

Changelog
Version Description
3.16.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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