mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-17 13:43:38 +09:00
- move billing & shipping fields code to UM: Woocommerce extension;
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user