WP_Privacy_Requests_Table::column_cb( WP_User_Request $item ): string

In this article

Returns the markup for the Checkbox column.

Parameters

$itemWP_User_Requestrequired
Item being shown.

Return

string Checkbox column markup.

Source

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

Changelog

VersionDescription
4.9.6Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.