do_settings_fields [ WordPress Function ]
do_settings_fields ( $page, $section )
| Parameters: |
|
| Defined at: |
|
Soorgelijke functies: settings_fields, add_settings_field, do_settings_sections, settings_errors, add_settings_error
Print out the settings fields for a particular settings section
Part of the Settings API. Use this in a settings page to output a specific section. Should normally be called by do_settings_sections() rather than directly.
Source
<?php
function do_settings_fields($page, $section) {
global $wp_settings_fields;
if ( !isset($wp_settings_fields) || !isset($wp_settings_fields[$page]) || !isset($wp_settings_fields[$page][$section]) )
return;
foreach ( (array) $wp_settings_fields[$page][$section] as $field ) {
echo '<tr valign="top">';
if ( !empty($field['args']['label_for']) )
echo '<th scope="row"><label for="' . $field['args']['label_for'] . '">' . $field['title'] . '</label></th>';
else
echo '<th scope="row">' . $field['title'] . '</th>';
echo '<td>';
call_user_func($field['callback'], $field['args']);
echo '</td>';
echo '</tr>';
}
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- Function Reference/do settings fields « WordPress Codex
Description. Prints out the settings fields for a particular settings section. Usage. < ?php do_settings_fields( $page, $section ); ?> Parameters. $page: (string) ...
codex.wordpress.org - do_settings_fields() WordPress function reference, arguments and ...
Print out the settings fields for a particular settings section.
queryposts.com - PHPXRef 0.7 : WordPress : Function Reference: do_settings_fields()
Function and Method Cross Reference. do_settings_fields(). Defined at: /wp- admin/includes/template.php -> line 1128. Referenced 13 times: ...
phpxref.ftwr.co.uk - do_settings_fields (WordPress Function) - WPSeek.com
WordPress lookup for do_settings_fields, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com