[wp-trac] [WordPress Trac] #27996: Show/Hide Postbox doesn't work if dynamically added

WordPress Trac noreply at wordpress.org
Thu Jun 18 20:06:25 UTC 2015


#27996: Show/Hide Postbox doesn't work if dynamically added
----------------------------+------------------------------
 Reporter:  johnstonphilip  |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:  3.9
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:  javascript
----------------------------+------------------------------

Comment (by johnstonphilip):

 The reason why I want to do it this way is because I have a potentially
 unlimited number of unique metaboxes - but only need to show 2 at any
 given time.

 I would like to load ONLY what is actually needed (based on user selection
 in an existing meta box). This is why I would like to create those
 metaboxes at-runtime and load their contents in through ajax.

 I could create hundreds of empty metaboxes and then trigger the ajax when
 the user selects the data in question - but I would rather only create the
 metaboxes needed.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27996#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list