WP_Privacy_Requests_Table::column_cb
Returns the markup for the Checkbox column.
Method of the class: WP_Privacy_Requests_Table{}
No Hooks.
Returns
String. Checkbox column markup.
Usage
$WP_Privacy_Requests_Table = new WP_Privacy_Requests_Table(); $WP_Privacy_Requests_Table->column_cb( $item );
- $item(WP_User_Request) (required)
- Item being shown.
Changelog
| Since 4.9.6 | Introduced. |
WP_Privacy_Requests_Table::column_cb() WP Privacy Requests Table::column cb code WP 7.0
public function column_cb( $item ) {
return sprintf(
'<input type="checkbox" name="request_id[]" id="requester_%1$s" value="%1$s" />' .
'<label for="requester_%1$s"><span class="screen-reader-text">%2$s</span></label><span class="spinner"></span>',
esc_attr( $item->ID ),
/* translators: Hidden accessibility text. %s: Email address. */
sprintf( __( 'Select %s' ), $item->email )
);
}