do_settings_sections example

<label for="uploads_use_yearmonth_folders"> <input name="uploads_use_yearmonth_folders" type="checkbox" id="uploads_use_yearmonth_folders" value="1"<?php checked( '1', get_option( 'uploads_use_yearmonth_folders' ) ); ?> /> <?php _e( 'Organize my uploads into month- and year-based folders' ); ?> </label> </td> </tr> <?php do_settings_fields( 'media', 'uploads' ); ?> </table> <?php endif; ?> <?php do_settings_sections( 'media' ); ?> <?php submit_button(); ?> </form> </div> <?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>
for ( $day_index = 0; $day_index <= 6; $day_index++ ) :
    $selected = ( get_option( 'start_of_week' ) == $day_index ) ? 'selected="selected"' : '';
    echo "\n\t<option value='" . esc_attr( $day_index ) . "' $selected>" . $wp_locale->get_weekday( $day_index ) . '</option>';
endfor;
?> </select></td> </tr> <?php do_settings_fields( 'general', 'default' ); ?> </table> <?php do_settings_sections( 'general' ); ?> <?php submit_button(); ?> </form> </div> <?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>
<?php echo $blog_prefix; ?> <input name="tag_base" id="tag_base" type="text" value="<?php echo esc_attr( $tag_base ); ?>" class="regular-text code" /> </td> </tr> <?php do_settings_fields( 'permalink', 'optional' ); ?> </table> <?php do_settings_sections( 'permalink' ); ?> <?php submit_button(); ?> </form> <?php if ( ! is_multisite() ) : ?> <?php     if ( $iis7_permalinks ) :
        if ( isset( $_POST['submit'] ) && $permalink_structure && ! $using_index_permalinks && ! $writable ) :
            if ( file_exists( $home_path . 'web.config' ) ) :
                ?> <p id="iis-description-a">

echo apply_filters( 'default_avatar_select', $avatar_list );
?> </fieldset></td> </tr> <?php do_settings_fields( 'discussion', 'avatars' ); ?> </table> <?php do_settings_sections( 'discussion' ); ?> <?php submit_button(); ?> </form> </div> <?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>
/* translators: 1: Documentation URL, 2: URL to Reading Settings screen. */
            __( 'WordPress is not notifying any <a href="%1$s">Update Services</a> because of your site&#8217;s <a href="%2$s">visibility settings</a>.' ),
            __( 'https://wordpress.org/documentation/article/update-services/' ),
            'options-reading.php'
        );
        ?> </p> <?php endif; ?> <?php } // enable_update_services_configuration ?> <?php do_settings_sections( 'writing' ); ?> <?php submit_button(); ?> </form> </div> <?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>
<?php else : ?> <label for="blog_public"><input name="blog_public" type="checkbox" id="blog_public" value="0" <?php checked( '0', get_option( 'blog_public' ) ); ?> /> <?php _e( 'Discourage search engines from indexing this site' ); ?></label> <p class="description"><?php _e( 'It is up to search engines to honor this request.' ); ?></p> <?php endif; ?> </fieldset></td> </tr> <?php do_settings_fields( 'reading', 'default' ); ?> </table> <?php do_settings_sections( 'reading' ); ?> <?php submit_button(); ?> </form> </div> <?php require_once ABSPATH . 'wp-admin/admin-footer.php'; ?>
Home | Imprint | This part of the site doesn't use cookies.