WordPress at a glance
function is not described

bool_from_yn() WP 1.0.0

Whether input is yes or no.

Must be 'y' to be true.

No Hooks.

Return

true/false. True if yes, false on anything else.

Usage

bool_from_yn( $yn );
$yn(string) (required)
Character string containing either 'y' (yes) or 'n' (no).

Code of bool from yn: wp-includes/functions.php VER 5.0.3

<?php
function bool_from_yn( $yn ) {
	return ( strtolower( $yn ) == 'y' );
}