__checked_selected_helper Wordpress function


Description:

Private helper function for checked, selected, and disabled.


Syntax:

function __checked_selected_helper( $helper, $current, $echo, $type ) {
if ( (string) $helper === (string) $current )
$result = " $type='$type'";
else
$result = '';

if ( $echo )
echo $result;

return $result;
}


Arguments:

(mixed) $helper One of the values to compare,
(mixed) $current (true) The other value to compare if not just true,
(bool) $echo Whether to echo or just return the string,
(string) $type The type of checked|selected|disabled we are doing


Return Type:

(integer) scaled count"


Define At:

wp-includes/general-template.php


Wordpress Reference URL:

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


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