Title: Using write_participant method
Last modified: May 15, 2017

---

# Using write_participant method

 *  [syrandel](https://wordpress.org/support/users/syrandel/)
 * (@syrandel)
 * [9 years ago](https://wordpress.org/support/topic/using-write_participant-method/)
 * Hi,
    I have developed 2 plugins, one based on participants-database, and the 
   other using the data from participants-database in which I have a form in WP 
   back-end to add/update records to the Participants DB. I am trying to use the
   write_participant method. The first problem I had was that the process_form function
   is trying to use the data from $_FILES, from my own form. Easily solved by unsetting
   $_FILES content before calling write_participant(). I need help on the 2nd problem:
   is_admin() called in process_form() is returning false and process_form does 
   not update DB with my data. For example, $column_set is getting the ‘frontend’
   value, instead of ‘backend’. My php modules are called from the WP administration.
   I suspect I am not using WP hooks as I should. Can you help? Thanks

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

 *  Thread Starter [syrandel](https://wordpress.org/support/users/syrandel/)
 * (@syrandel)
 * [9 years ago](https://wordpress.org/support/topic/using-write_participant-method/#post-9137704)
 * Hi,
    I have a complementary question: Was write_participants supposed to be a
   public method, to be used as an API ? I made my version of process_form() after
   running into more problems. My plugin now works, loading a XML files and updating
   records in participants DB table. Many thanks for the fantastic plugin which 
   saved me weeks of work.
 *  Plugin Author [Roland Barker](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [9 years ago](https://wordpress.org/support/topic/using-write_participant-method/#post-9138191)
 * Glad you figured out a way to implement your functionality. The write_participant
   method is a convenience method, it can’t handle special cases. The process_form
   method is more flexible, but is a little more complex to use. Both are part of
   the API.

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

The topic ‘Using write_participant method’ is closed to new replies.

 * ![](https://ps.w.org/participants-database/assets/icon-256x256.jpg?rev=1389807)
 * [Participants Database](https://wordpress.org/plugins/participants-database/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/participants-database/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/participants-database/)
 * [Active Topics](https://wordpress.org/support/plugin/participants-database/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/participants-database/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/participants-database/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 2 replies
 * 2 participants
 * Last reply from: [Roland Barker](https://wordpress.org/support/users/xnau/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/using-write_participant-method/#post-9138191)
 * Status: not resolved