[wp-trac] [WordPress Trac] #43303: Providing hooks for html table markups in do_settings_{sections|fields}

WordPress Trac noreply at wordpress.org
Mon Jul 3 12:55:59 UTC 2023


#43303: Providing hooks for html table markups in do_settings_{sections|fields}
----------------------------+---------------------------------
 Reporter:  aranwer104      |       Owner:  (none)
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:  ui, administration
----------------------------+---------------------------------

Comment (by zahardoc):

 I would vote for this enhancement, and furthermore, add some more filters
 there, for example:

  - Add filter to change the section title:

 `echo "<h2>{$section['title']}</h2>\n";`

  - Add filter to change the form parameters:

 `echo '<table class="form-table" role="presentation">';`

  - And add action at the end of the function:

 `do_action( 'do_settings_sections_closing_wrapper_{$page} );`

 I can make a MR for it.

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


More information about the wp-trac mailing list