WP_MS_Themes_List_Table::column_cb( WP_Theme $theme )

Handles the checkbox column output.


Description Description


Parameters Parameters

$theme

(WP_Theme) (Required) The current WP_Theme object.


Top ↑

Source Source

File: wp-admin/includes/class-wp-ms-themes-list-table.php

	public function column_cb( $theme ) {
		$checkbox_id = 'checkbox_' . md5( $theme->get( 'Name' ) );
		?>
		<input type="checkbox" name="checked[]" value="<?php echo esc_attr( $theme->get_stylesheet() ); ?>" id="<?php echo $checkbox_id; ?>" />
		<label class="screen-reader-text" for="<?php echo $checkbox_id; ?>" ><?php _e( 'Select' ); ?>  <?php echo $theme->display( 'Name' ); ?></label>
		<?php
	}

Top ↑

Changelog Changelog

Changelog
Version Description
4.3.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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