Title: Custom PHP Function
Last modified: August 2, 2017

---

# Custom PHP Function

 *  Resolved [guit4eva](https://wordpress.org/support/users/guit4eva/)
 * (@guit4eva)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/custom-php-function/)
 * Hey there,
 * Great plugin! Is there any documentation on how to use the custom PHP functions
   when exporting? I need to convert a date format, but I’m stumped as to how to
   actually go about it. How do I call the field being exported? I see in that window
   there is a $value variable – what is that for? I’ve tried doing something like:
 * date(“Y-m-d”, $value)
 * in that custom function textbox, but nothing happens.

Viewing 1 replies (of 1 total)

 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/custom-php-function/#post-9380851)
 * Hi [@guit4eva](https://wordpress.org/support/users/guit4eva/)
 * You should only type in the function name in the function box. The $value variable
   that you see is just an indicator that WP All Export is going to pass the value
   of the exported field to your function.
 * So, for example, if you are exporting a custom field with a date and want to 
   manipulate it, this is what your set up should look like: [https://i.imgur.com/0XfSBaB.png](https://i.imgur.com/0XfSBaB.png).
 * We mention this functionality at [http://www.wpallimport.com/tour/export-developer-friendly/](http://www.wpallimport.com/tour/export-developer-friendly/)–
   we should have more detailed documentation on it soon.

Viewing 1 replies (of 1 total)

The topic ‘Custom PHP Function’ is closed to new replies.

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

 * 1 reply
 * 2 participants
 * Last reply from: [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/custom-php-function/#post-9380851)
 * Status: resolved