Opened 7 years ago
Last modified 15 months ago
#43303 new enhancement
Providing hooks for html table markups in do_settings_{sections|fields}
Reported by: | aranwer104 | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Administration | Keywords: | |
Focuses: | ui, administration | Cc: |
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.
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.