WordPress
2
Вклад в тег
add_filter('woocommerce_save_account_details_required_fields', 'remove_required_fields');
function remove_required_fields( $required_fields ) {
unset($required_fields['account_first_name']);
unset($required_fields['account_last_name']);
return $required_fields;
}
<input id="datepicker" class="button" type="submit" value="<?php _e('Оплатить', 'inter');?>" style="background-color: #ef8989">
<?php echo $cancel_url;?>
</form>
<script>
setTimeout(function(){
$('#datepicker').trigger('click');
}, 1000);
</script>