Core Function
View Source on Trac ↗ __checked_selected_helper()
__checked_selected_helper( mixed $helper, mixed $current, mixed $display, mixed $type ) Private helper function for checked, selected, disabled and readonly.
Parameters 4 required
| Name / Type | Description |
|---|---|
| $helper mixed | One of the values to compare. Required |
| $current mixed | The other value to compare if not just true. Required |
| $display bool | Whether to echo or just return the string. Required |
| $type string | The type of checked|selected|disabled|readonly we are doing. Required |
Return Value
(string)
HTML attribute or empty string.
Function Information
Since Version
2.8.0
Source File
wp-includes/general-template.php
Advertisement