• 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

    (@syrandel)

    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 xnau webdesign

    (@xnau)

    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.