Uses
Uses | Description |
---|---|
wp-includes/l10n.php: __() | Retrieve the translation of $text. |
wp-includes/formatting.php: esc_attr() | Escaping for HTML attributes. |
Handles the checkbox column output.
(object) (Required) The current link object.
File: wp-admin/includes/class-wp-links-list-table.php
public function column_cb( $link ) { ?> <label class="screen-reader-text" for="cb-select-<?php echo $link->link_id; ?>"> <?php /* translators: %s: Link name. */ printf( __( 'Select %s' ), $link->link_name ); ?> </label> <input type="checkbox" name="linkcheck[]" id="cb-select-<?php echo $link->link_id; ?>" value="<?php echo esc_attr( $link->link_id ); ?>" /> <?php }
Version | Description |
---|---|
4.3.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_links_list_table/column_cb