[wp-trac] [WordPress Trac] #10694: Simplify creation of options pages for plugins with custom menus

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 27 23:08:48 UTC 2009


#10694: Simplify creation of options pages for plugins with custom menus
----------------------------+-----------------------------------------------
 Reporter:  sirzooro        |       Owner:                         
     Type:  enhancement     |      Status:  new                    
 Priority:  normal          |   Milestone:  2.9                    
Component:  Administration  |     Version:  2.8.4                  
 Severity:  normal          |    Keywords:  close reporter-feedback
----------------------------+-----------------------------------------------
Changes (by dd32):

  * keywords:  needs-patch => close reporter-feedback


Comment:

 > wp-admin/options.php file does a good job for handling options pages for
 plugins, which adds new item(s) to the Settings menu. Unfortunately this
 simple approach does not work when plugin registers its own menu and puts
 all options pages in it

 Yes, It does.

 You simply need to direct the form action tag to options.php, Add a field
 for the page to redirect back to(optional), and add a field listing the
 options you wish to save (Along with a nonce i think).

 See http://codex.wordpress.org/Creating_Options_Pages for the full
 rundown. Dont forget the register_setting() functionality along with the
 rest..

 Pretty sure this is invalid, but leaving open pending reporter-feedback
 that this doesnt achieve their goals.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10694#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list