LLMS_AJAX_Handler::get_admin_table_data( array $request )
Reload admin tables
Parameters Parameters
- $request
-
(array) (Required) Post data ($_REQUEST).
Return Return
(array)
Source Source
File: includes/class.llms.ajax.handler.php
220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 | public static function get_admin_table_data( $request ) { if ( ! current_user_can( 'view_lifterlms_reports' ) || empty ( $request [ 'handler' ] ) ) { return false; } $table = self::get_admin_table_instance( $request [ 'handler' ] ); if ( ! $table ) { return false; } $table ->get_results( $request ); return array ( 'args' => wp_json_encode( $table ->get_args() ), 'thead' => trim( $table ->get_thead_html() ), 'tbody' => trim( $table ->get_tbody_html() ), 'tfoot' => trim( $table ->get_tfoot_html() ), ); } |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.37.15 | Verify user permissions before processing request data. Use wp_json_encode() in favor of json_encode() . |
3.2.0 | Introduced. |