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

WP_Privacy_Requests_Table::process_bulk_action() public WP 4.9.6

Process bulk actions.

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

Хуков нет.

Возвращает

Null. Ничего.

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

$WP_Privacy_Requests_Table = new WP_Privacy_Requests_Table();
$WP_Privacy_Requests_Table->process_bulk_action();

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

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

Код WP_Privacy_Requests_Table::process_bulk_action() WP 5.5.1

wp-admin/includes/class-wp-privacy-requests-table.php
<?php
public function process_bulk_action() {
	$action      = $this->current_action();
	$request_ids = isset( $_REQUEST['request_id'] ) ? wp_parse_id_list( wp_unslash( $_REQUEST['request_id'] ) ) : array();

	$count = 0;

	if ( $request_ids ) {
		check_admin_referer( 'bulk-privacy_requests' );
	}

	switch ( $action ) {
		case 'delete':
			foreach ( $request_ids as $request_id ) {
				if ( wp_delete_post( $request_id, true ) ) {
					$count ++;
				}
			}

			add_settings_error(
				'bulk_action',
				'bulk_action',
				/* translators: %d: Number of requests. */
				sprintf( _n( 'Deleted %d request', 'Deleted %d requests', $count ), $count ),
				'success'
			);
			break;
		case 'resend':
			foreach ( $request_ids as $request_id ) {
				$resend = _wp_privacy_resend_request( $request_id );

				if ( $resend && ! is_wp_error( $resend ) ) {
					$count++;
				}
			}

			add_settings_error(
				'bulk_action',
				'bulk_action',
				/* translators: %d: Number of requests. */
				sprintf( _n( 'Re-sent %d request', 'Re-sent %d requests', $count ), $count ),
				'success'
			);
			break;
	}
}