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

WP_List_Table::ajax_response() public WP 3.1.0

Handles an incoming ajax request (called from admin-ajax.php)

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

Хуков нет.

Возвращает

Null. Ничего.

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

$WP_List_Table = new WP_List_Table();
$WP_List_Table->ajax_response();

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

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

Код WP_List_Table::ajax_response() WP 5.5.1

wp-admin/includes/class-wp-list-table.php
<?php
public function ajax_response() {
	$this->prepare_items();

	ob_start();
	if ( ! empty( $_REQUEST['no_placeholder'] ) ) {
		$this->display_rows();
	} else {
		$this->display_rows_or_placeholder();
	}

	$rows = ob_get_clean();

	$response = array( 'rows' => $rows );

	if ( isset( $this->_pagination_args['total_items'] ) ) {
		$response['total_items_i18n'] = sprintf(
			/* translators: Number of items. */
			_n( '%s item', '%s items', $this->_pagination_args['total_items'] ),
			number_format_i18n( $this->_pagination_args['total_items'] )
		);
	}
	if ( isset( $this->_pagination_args['total_pages'] ) ) {
		$response['total_pages']      = $this->_pagination_args['total_pages'];
		$response['total_pages_i18n'] = number_format_i18n( $this->_pagination_args['total_pages'] );
	}

	die( wp_json_encode( $response ) );
}