- move billing & shipping fields code to UM: Woocommerce extension;

This commit is contained in:
nikitasinelnikov
2019-08-23 22:47:04 +03:00
parent 55744b0aa3
commit 2261c102a9
2 changed files with 5 additions and 13 deletions
+2 -2
View File
@@ -54,8 +54,8 @@ if ( ! class_exists( 'um\admin\core\Admin_Builder' ) ) {
$validate = $field_attr['validate'];
foreach ( $validate as $post_input => $arr ) {
// 'billing_country' and 'shipping_country'
if( $post_input === '_options' && isset( $array[ 'post' ][ '_metakey' ] ) && in_array( $array[ 'post' ][ '_metakey' ], array( 'billing_country', 'shipping_country' ) ) ) {
$skip = apply_filters( 'um_admin_builder_skip_field_validation', false, $post_input, $array );
if ( $skip ) {
continue;
}