Title: how does the function editor work
Last modified: October 1, 2020

---

# how does the function editor work

 *  Resolved [tyankee](https://wordpress.org/support/users/tyankee/)
 * (@tyankee)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/how-does-the-function-editor-work/)
 * i can’t get this plugin to update my prices. that is the only reason i ordered
   it. Support only gets me one try per night and last night no one responded. if
   i can figure this out myself i would but i don’t understand what to put in the‘
   variable’ field in the function editor. This statement:
 * // Set 9 to the ID of the import to target
    if ($import_id == ‘{sku[1]}’) {
 * I put sku[1] as the ID to target but it’s not working. sku is coming from the
   csv input file and matches the parent product on my site.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhow-does-the-function-editor-work%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/how-does-the-function-editor-work/#post-13480621)
 * Hi [@tyankee](https://wordpress.org/support/users/tyankee/),
 * The $import_id check is a number, you can’t use an import element there. Instead
   of {sku[1]}, you need to put the import ID number of the import you want the 
   code to run for (you can find that on the Manage Imports page).
 * I’ve found your support thread in our system and I can see that we responded 
   to you a few hours ago. We should continue the discussion there rather than starting
   new on the issue here.

Viewing 1 replies (of 1 total)

The topic ‘how does the function editor work’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/how-does-the-function-editor-work/#post-13480621)
 * Status: resolved