Adjust values displayed in cart for specific field types
add_filter( ‘wc_fp_cart_item_data’, ‘modify_frm_woo_display_for_number_fields’, 10, 2 ); function modify_frm_woo_display_for_number_fields( $values, $args ) { if ( $args[‘field’]->type ==”number”) { $end_position = strpos( $values[‘display’], ‘ (‘ ); $values[‘display’] = substr( $values[‘display’], 0, $end_position ); } return $values; }Continue reading