Opened 9 years ago
Last modified 3 years ago
#43303 new enhancement
Providing hooks for html table markups in do_settings_{sections|fields}
| Reported by: | aranwer104 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Administration | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | ui, administration |
Description
I Apologize if this is silly thing but having hooks may enable customization opportunity for opening/closing table markups of do_settings_sections and likewise with fields. while maintaining table markups by default for core & other Settings API pages.
do_settings_sections
echo '<table class="form-table">'; do_settings_fields( $page, $section['id'] ); echo '</table>';
Something like
do_action( 'do_settings_sections_opening_wrapper_{$page}, 'default_handler' );
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I would vote for this enhancement, and furthermore, add some more filters there, for example:
echo "<h2>{$section['title']}</h2>\n";echo '<table class="form-table" role="presentation">';do_action( 'do_settings_sections_closing_wrapper_{$page} );I can make a MR for it.