WP_Privacy_Requests_Table::column_cb() WordPress Method
The WP_Privacy_Requests_Table::column_cb() method is used to output a checkbox for each privacy request in the table. This is used so that bulk actions can be performed on multiple requests at once.
WP_Privacy_Requests_Table::column_cb( WP_User_Request $item ) #
Checkbox column.
Parameters
- $item
(WP_User_Request)(Required)Item being shown.
Return
(string) Checkbox column markup.
Source
File: wp-admin/includes/class-wp-privacy-requests-table.php
public function column_cb( $item ) { return sprintf( '<input type="checkbox" name="request_id[]" value="%1$s" /><span class="spinner"></span>', esc_attr( $item->ID ) ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.9.6 | Introduced. |