epl_get_saved_option

Get a saved option, keeping saved empty values

Unlike epl_get_option(), a saved empty value such as '' or an empty array is returned as saved, so a cleared text field or a checkbox list with nothing ticked stays empty. The default is returned only when the setting has never been saved. Runs the same epl_get_option and epl_get_option_{$key} filters as epl_get_option().

Since
3.6
Parameters
string $key = ''

Setting key.

#
mixed $default_val = false

Returned when the setting has never been saved.

#
Returns
mixed