Uses
Uses | Description |
---|---|
wp-includes/l10n.php: _e() | Display translated text. |
wp-includes/formatting.php: esc_attr() | Escaping for HTML attributes. |
Handles the checkbox column output.
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 }
Version | Description |
---|---|
4.3.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_ms_themes_list_table/column_cb