wpseek.com
A WordPress-centric search engine for devs and theme authors
wp_ajax_fetch_list › WordPress Function
Since3.1.0
Deprecatedn/a
› wp_ajax_fetch_list ( No parameters )
Defined at: |
|
Codex: |
Handles fetching a list table via AJAX.
Related Functions: wp_ajax_search_plugins, wp_ajax_trash_post, wp_ajax_delete_link, wp_ajax_delete_post, wp_ajax_untrash_post
Source
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 ); }