bbp_converter_setting_callback_platform()

Edit Platform setting field


Description Description


Source Source

File: includes/admin/settings.php

function bbp_converter_setting_callback_platform() {

	// Converters
	$current    = get_option( '_bbp_converter_platform' );
	$converters = bbp_get_converters();
	$options    = '';

	// Put options together
	foreach ( $converters as $name => $file ) {
		$options .= '<option value="' . esc_attr( $name ) . '"' . selected( $name, $current, false ) . '>' . esc_html( $name ) . '</option>';
	} ?>

	<select name="_bbp_converter_platform" id="_bbp_converter_platform"><?php echo $options ?></select>
	<p class="description"><?php esc_html_e( 'The previous forum software', 'bbpress' ); ?></p>

<?php
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.