用于获取列表表的Ajax处理程序。

原型

wp_ajax_fetch_list()

源文件

路径:wp-admin/includes/ajax-actions.php

<?php
...
function wp_ajax_fetch_list() {
	$list_class = $_GET['list_args']['class'];
	check_ajax_referer( "fetch-list-$list_class", '_ajax_fetch_list_nonce' );
	$wp_list_table = _get_list_table( $list_class, array( 'screen' => $_GET['list_args']['screen']['id'] ) );
	if ( ! $wp_list_table ) {
		wp_die( 0 );
	}
	if ( ! $wp_list_table->ajax_user_can() ) {
		wp_die( -1 );
	}
	$wp_list_table->ajax_response();
	wp_die( 0 );
}
...
?>

其他

英文文档:https://developer.wordpress.org/reference/functions/wp_ajax_fetch_list/