• I created my own settings page based on the settings API. but some of my settings didn’t quite fit so I declared them as user defined and created my own display and update functions. Everything worked great until recently. I don’t know which update because I hadn’t changed the settings in a while, but at some point it stopped working because now I cannot change them from the dashboard. I looked through the code, even added some ‘echo’ statements to confirm that my update function is executing, but still they never get saved to the database. What am I missing? Would appreciate some help so I can stop pulling my hair out 🙂

    https://wordpress.org/plugins/jigoshop/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author MWSGD

    (@mwsgd)

    Hi Erica,

    Where did you apply these changes. The Jigoshop directory in plugins or did you place it in your theme?

    Thread Starter Erica

    (@ericamdion)

    I did not modify the core jigoshop files before. It is actually in plugin form because I like keeping it separate from my theme. Easier to edit this way. I’ve extended the admin settings so that I can use the built in options feature. In my array my fields have a ‘display’ and an ‘update’ key. The display is still working, and by adding my echo statement I know the update function is being called, it just doesn’t seem to do anything after validation 🙁

    I’m not really sure where it goes after that so I can’t properly debug it. I followed the code all the way up through validation, it says it validated fine, but I don’t know what happens next.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change to User Defined Variables?’ is closed to new replies.