• Resolved patrickkk

    (@patrickkk)


    hi,

    i am currently in the process of learning to develop a WordPress plugin, and after several tutorials I decided to give it a go. I have tried to inform myself about all the features and best practices, and in the process stumbled upon the new settings API following this http://ozh.in/lp tutorial I have a feeling I am very close, the only problem I keep getting is when submitting I get an error that the page is not found. if you happen to find any other code that could be improved please also say so
    here is the plugin code

    [Code moderated as per the Forum Rules. Please use a pastebin]

    thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter patrickkk

    (@patrickkk)

    I seem to be unable to edit my post so I am going to post the pastebin here http://pastebin.com/v4JVQpBy

    Thread Starter patrickkk

    (@patrickkk)

    it is solved,
    2 changes need to be made

    1. register hook for admin init that registers settings instead of the activation hook

    2. use the correct value for settings_fields() and, get_option()

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

The topic ‘plugin development’ is closed to new replies.