• When i try to export shipment data for a customer on WPcargo Track, I don’t get the full array of data on excel but get an error that says:

    Warning: in_array() expects parameter 2 to be array, string given in /home/customer/www/intactcourier.com/public_html/wp-content/plugins/wpcargo/admin/classes/class-wpc-export.php on line 183

    This is the code:

    if( isset( $_REQUEST['meta-fields'] ) && !empty( $_REQUEST['meta-fields']) && !empty( $form_fields ) ){
    				$meta_fields_key = sanitize_text_field( $_REQUEST['meta-fields'] );
    				foreach( $form_fields as $field ){
    					if( in_array( $field['meta_key'], $meta_fields_key ) ){
    						$meta_fields_label[$field['meta_key']] = esc_html( $field['label'] );
    						continue;

    Please look into this. Thanks

    • This topic was modified 2 years, 11 months ago by intactcourier.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WPcargo Shipment export not working’ is closed to new replies.