apply_filters( 'um_is_field_disabled', $disabled, $data ) → {string}
Filters a field disabled attribute.
Parameters:
Name | Type | Description |
---|---|---|
$disabled |
string | Disable global CSS. |
$data |
array | Field data. |
- Since:
- 2.0
- Source:
Returns:
Set string to ' disabled="disabled" ' to make a field disabled.
- Type
- string
Example
function my_is_field_disabled( $disabled, $data ) {
$disabled = ' disabled="disabled" ';
return $disabled;
}
add_filter( 'um_is_field_disabled', 'my_is_field_disabled', 10, 2 );