do_settings_sections [ WordPress Function ]
| Parameters: |
|
| Defined at: |
|
Prints out all settings sections added to a particular settings page
Part of the Settings API. Use this in a settings page callback function to output all the sections and fields that were added to that $page with add_settings_section() and add_settings_field()
Source
<?php
function do_settings_sections($page) {
global $wp_settings_sections, $wp_settings_fields;
if ( !isset($wp_settings_sections) || !isset($wp_settings_sections[$page]) )
return;
foreach ( (array) $wp_settings_sections[$page] as $section ) {
if ( $section['title'] )
echo "<h3>{$section['title']}</h3>\n";
call_user_func($section['callback'], $section);
if ( !isset($wp_settings_fields) || !isset($wp_settings_fields[$page]) || !isset($wp_settings_fields[$page][$section['id']]) )
continue;
echo '<table class="form-table">';
do_settings_fields($page, $section['id']);
echo '</table>';
}
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Function Reference/do settings sections « WordPress Codex
Description. Prints out all settings sections added to a particular settings page. Usage. <?php do_settings_sections( $page ) ?> Parameters. $page: (string) ...
codex.wordpress.org - do_settings_sections
Function and Method Cross Reference. do_settings_sections(). Defined at: /wp- admin/includes/template.php -> line 1097. Referenced 8 times: ...
phpxref.ftwr.co.uk - do_settings_sections (WordPress Function) - WPSeek.com
WordPress lookup for do_settings_sections, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com - Everything IT | Tag Archive | do_settings_sections
May 3, 2012 ... IT Solution Provider for Computer Training, Website Design, and Network Consultancy.
blog.centilin.com