A boolean that specifies whether attribute value is selected or not for a checkbox, radio button or drop-down list.
Parameters
- $term [object] – WP_Term object with the value of the attribute to be checked
- $checked [boolean] – for checkbox, radio button
- $child_parent [boolean] – search in children
- $depth [int] – search directory treeĀ
Returns
[string] A string with text for a checkbox, radio button or drop-down list.
