WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WP_Privacy_Data_Export_Requests_List_Table::column_next_steps() public WP 4.9.6

Displays the next steps column.

Это метод класса: WP_Privacy_Data_Export_Requests_List_Table{}

Хуки из метода
Возвращает

Null. Ничего.

Использование

$WP_Privacy_Data_Export_Requests_List_Table = new WP_Privacy_Data_Export_Requests_List_Table();
$WP_Privacy_Data_Export_Requests_List_Table->column_next_steps( $item );
$item(WP_User_Request) (обязательный)
Item being shown.

Список изменений

С версии 4.9.6 Введена.

Код WP_Privacy_Data_Export_Requests_List_Table::column_next_steps() WP 5.5.1

wp-admin/includes/class-wp-privacy-data-export-requests-list-table.php
<?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 */
			$exporters       = apply_filters( 'wp_privacy_personal_data_exporters', array() );
			$exporters_count = count( $exporters );
			$request_id      = $item->ID;
			$nonce           = wp_create_nonce( 'wp-privacy-export-personal-data-' . $request_id );

			echo '<div class="export-personal-data" ' .
				'data-send-as-email="1" ' .
				'data-exporters-count="' . esc_attr( $exporters_count ) . '" ' .
				'data-request-id="' . esc_attr( $request_id ) . '" ' .
				'data-nonce="' . esc_attr( $nonce ) .
				'">';

			?>
			<span class="export-personal-data-idle"><button type="button" class="button-link export-personal-data-handle"><?php _e( 'Send Export Link' ); ?></button></span>
			<span class="export-personal-data-processing hidden"><?php _e( 'Sending Email...' ); ?> <span class="export-progress"></span></span>
			<span class="export-personal-data-success success-message hidden"><?php _e( 'Email sent.' ); ?></span>
			<span class="export-personal-data-failed hidden"><?php _e( 'Email could not be sent.' ); ?> <button type="button" class="button-link export-personal-data-handle"><?php _e( 'Retry' ); ?></button></span>
			<?php

			echo '</div>';
			break;
		case 'request-failed':
			echo '<button type="submit" class="button-link" name="privacy_action_email_retry[' . $item->ID . ']" id="privacy_action_email_retry[' . $item->ID . ']">' . __( 'Retry' ) . '</button>';
			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( 'export-personal-data.php' )
					),
					'bulk-privacy_requests'
				)
			) . '">' . esc_html__( 'Remove request' ) . '</a>';
			break;
	}
}