wp_ajax_fetch_list() – Ajax handler for fetching a list table.

You appear to be a bot. Output may be restricted

Description

Ajax handler for fetching a list table.

Usage

wp_ajax_fetch_list();

Parameters

Returns

void

Source

File name: wordpress/wp-admin/includes/ajax-actions.php
Lines:

1 to 17 of 17
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 );
}
 

 View on GitHub View on Trac