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.


Top ↑

Return

(string) Checkbox column markup.


Top ↑

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 ) );
	}


Top ↑

Changelog

Changelog
VersionDescription
4.9.6Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.