Title: Modify parameter value before import
Last modified: February 27, 2020

---

# Modify parameter value before import

 *  Resolved [madhamster](https://wordpress.org/support/users/madhamster/)
 * (@madhamster)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/modify-parameter-value-before-import/)
 * Hi guys. I got xml feed with variations which are stored like this: <size name
   =”XXX” />. I am trying to get this value, change it to YYY and then import it
   as a variation but I realized I am terrible with programming. Any help would 
   be appreciated. Thank you in advance.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/modify-parameter-value-before-import/#post-12504992)
 * Hi [@madhamster](https://wordpress.org/support/users/madhamster/)
 * > I am trying to get this value, change it to YYY and then import it as a variation
 * We have an article on using PHP functions to do things like that here: [http://www.wpallimport.com/documentation/advanced/execute-php/](http://www.wpallimport.com/documentation/advanced/execute-php/).
   For your particular example, this would work:
 * `[str_replace("XXX","YYY",{size[1]/@name})]`
 * As for importing variations, please see this guide: [http://www.wpallimport.com/documentation/woocommerce/variable-products/](http://www.wpallimport.com/documentation/woocommerce/variable-products/).
 * Let me know if you have any other questions.
 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/modify-parameter-value-before-import/#post-12548829)
 * Hi [@madhamster](https://wordpress.org/support/users/madhamster/)
 * I’m marking this as resolved since we haven’t heard back from you. If you still
   have questions about this, feel free to reply here.
 * Anyone else reading this, please start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Modify parameter value before import’ is closed to new replies.

 * ![](https://ps.w.org/wp-all-import/assets/icon-256x256.png?rev=2570179)
 * [WP All Import – Drag & Drop Import for CSV, XML, Excel & Google Sheets](https://wordpress.org/plugins/wp-all-import/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-all-import/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-all-import/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-all-import/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-all-import/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-all-import/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/modify-parameter-value-before-import/#post-12548829)
 * Status: resolved