WordPress at a glance
function is not described

WP_Privacy_Data_Removal_Requests_Table::column_next_steps() WP 4.9.6

Next steps column.

This is a method of the class: WP_Privacy_Data_Removal_Requests_Table

Hooks from the method
Return

Null. Nothing.

Usage

$WP_Privacy_Data_Removal_Requests_Table = new WP_Privacy_Data_Removal_Requests_Table();
$var = $WP_Privacy_Data_Removal_Requests_Table->column_next_steps( $item );
$item(WP_User_Request) (required)
Item being shown.

Changelog

Since 4.9.6 Introduced.

Code of WP Privacy Data Removal Requests Table::column next steps: wp-admin/includes/user.php WP 5.2.2

<?php
public function column_next_steps( $item ) {
	$status = $item->status;

	switch ( $status ) {
		case 'request-pending':
			esc_html_e( 'Waiting for confirmation' );
			break;
		case 'request-confirmed':
			/** This filter is documented in wp-admin/includes/ajax-actions.php */
			$erasers       = apply_filters( 'wp_privacy_personal_data_erasers', array() );
			$erasers_count = count( $erasers );
			$request_id    = $item->ID;
			$nonce         = wp_create_nonce( 'wp-privacy-erase-personal-data-' . $request_id );

			echo '<div class="remove-personal-data" ' .
				'data-force-erase="1" ' .
				'data-erasers-count="' . esc_attr( $erasers_count ) . '" ' .
				'data-request-id="' . esc_attr( $request_id ) . '" ' .
				'data-nonce="' . esc_attr( $nonce ) .
				'">';

			?>
			<span class="remove-personal-data-idle"><button type="button" class="button remove-personal-data-handle"><?php _e( 'Erase Personal Data' ); ?></button></span>
			<span style="display:none" class="remove-personal-data-processing button updating-message" ><?php _e( 'Erasing Data...' ); ?></span>
			<span style="display:none" class="remove-personal-data-failed"><?php _e( 'Erasing Data has failed.' ); ?> <button type="button" class="button remove-personal-data-handle"><?php _e( 'Retry' ); ?></button></span>
			<?php

			echo '</div>';

			break;
		case 'request-failed':
			submit_button( __( 'Retry' ), 'secondary', 'privacy_action_email_retry[' . $item->ID . ']', false );
			break;
		case 'request-completed':
			echo '<a href="' . esc_url(
				wp_nonce_url(
					add_query_arg(
						array(
							'action'     => 'delete',
							'request_id' => array( $item->ID ),
						),
						admin_url( 'tools.php?page=remove_personal_data' )
					),
					'bulk-privacy_requests'
				)
			) . '" class="button">' . esc_html__( 'Remove request' ) . '</a>';
			break;
	}
}