public/wordpress/wp-content/plugins/theme-my-login/admin/settings.php
/**
 * Render a checkbox setting field.
 *
 * @since 7.0
 */
Render a checkbox setting field.
Render a checkbox setting field .
function tml_admin_setting_callback_checkbox_field( $args ) {
	$args = wp_parse_args( $args, array(
		'label_for'   => '',
		'label'       => '',
		'value'       => '1',
		'checked'     => '',
		'description' => '',
	) );
?>
	<input type="checkbox" name="<?php echo esc_attr( $args['label_for'] ); ?>" id="<?php echo esc_attr( $args['label_for'] ); ?>" value="<?php echo $args['value']; ?>" <?php checked( ! empty( $args['checked'] ) ); ?> /> <label for="<?php echo esc_attr( $args['label_for'] ); ?>"><?php echo esc_html( $args['label'] ); ?></label>
	<?php if ( ! empty( $args['description'] ) ) : ?>
		<p class="description"><?php echo $args['description']; ?></p>
	<?php endif; ?>
<?php
}
function tml_admin_setting_callback_checkbox_field ( $ args ) { $ args = wp_parse_args ( $ args , array ( 'label_for' => '' , 'label' => '' , 'value' => '1' , 'checked' => '' , 'description' => '' , ) ) ; ?> <input type="checkbox" name=" <?php echo esc_attr ( $ args [ 'label_for' ] ) ; ?> " id=" <?php echo esc_attr ( $ args [ 'label_for' ] ) ; ?> " value=" <?php echo $ args [ 'value' ] ; ?> "  <?php checked ( ! empty ( $ args [ 'checked' ] ) ) ; ?> /> <label for=" <?php echo esc_attr ( $ args [ 'label_for' ] ) ; ?> "> <?php echo esc_html ( $ args [ 'label' ] ) ; ?> </label>

	 <?php if ( ! empty ( $ args [ 'description' ] ) ) : ?> <p class="description"> <?php echo $ args [ 'description' ] ; ?> </p>
	 <?php endif ; ?> <?php }
Render a checkbox setting field.
Render a checkbox setting field .