bool_from_yn Wordpress function


Description:

Whether input is yes or no. Must be 'y' to be true.


Syntax:


Arguments:

(string) $yn Character string containing either 'y' or 'n'


Return Type:

(bool) True if yes, false on anything else


Define At:

wp-includes/functions.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/bool_from_yn


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×