Below is a PHP function you can use in WP All Import to enable custom text mapping anywhere in your import. You would use it in your import field like this:
[my_map({field[1]})]
Where "{field[1]}" would be the correct field name from your file.
The PHP code for the function editor:
function my_map($value) {
$replacements = array(
// YOU CAN ADD OR MODIFY REPLACEMENTS BELOW USING THE SAME SYNTAX
'small' => 'S',
'medium' => 'M',
'large' => 'L',
);
return isset($replacements[$value]) ? $replacements[$value] : $value;
}
Note that the text replacements works on the entire string of text and not individual words. In the above example, "small" would become "S" but "It's a small world" would be unchanged.
HI @jonasskafte. I wrote this and the other gists a few years ago when I was working as a support tech for WP All Import. Unfortunately, my memory is hazy on some of the details. It's actually been at least a couple years since I've even run an import.
I will say that (to the best of my recollection) what you're trying should be possible.
Have you tried reaching out to the WP All Import support team yet? They're a fantastic bunch. Either Trey or Michael should be able to help you. http://www.wpallimport.com/support/
Best of luck.