Getting "Array to string conversion" error when creating a custom field type in WooCommerce
I'm developing a custom WooCommerce shipping method and trying to create a custom field type called multiselect_with_limits. This custom field type should allow selecting multiple neighborhoods and specifying a minimum order limit for each one. However, when I try to use this custom field type, I get the following error: Warning: Array to string conversion in /wp-includes/formatting.php on line 1096 function woocommerce_form_field_multiselect_with_limits( $key, $args, $value ) { // Eğer multiselect değerleri array ise işle if ( is_array( $value ) ) { $value = implode(',', $value); } $field = '
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.