public function get_value($input)
{
if (!empty($_POST[$input])) {
return wc_clean($_POST[$input]);
} else {
if (has_filter('woocommerce_checkout_get_value')) {
return apply_filters('woocommerce_checkout_get_value', null, $input);
}
if (is_callable(array(WC()->customer, "get_{$input}"))) {
$value = WC()->customer->{"get_{$input}"}();
} else {
$value = null;
}
return apply_filters('default_checkout_' . $input, $value, $input);
}
}