• I’m making a plugin for wordpress, but how can I add a menu that each user can change ?

    How it works is that people can add their links with a banner and description, but I want them to be able to change the description and the banner link later.

    I managed to make the admin settings page, but not sure how to make the user setting page.

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    A user setting page is an admin settings page, the only difference being where the settings are saved and who is allowed to see it. You could develop a PHP page that presents the form to the user and handles the submit post upon receipt, saving the data where appropriate. Add this page to the menu system like any other with add_menu_page().

    IMO, things work out better if you make this code into a callback function, but that’s optional, pages can be added as menu items just as well as callbacks, the URLs are just uglier ??

Viewing 1 replies (of 1 total)
  • The topic ‘user settings’ is closed to new replies.