Uses
Uses | Description |
---|---|
wp-includes/functions.php: wp_json_encode() | Encode a variable into JSON, with some sanity checks. |
Sends required variables to JavaScript land.
File: wp-admin/includes/class-wp-list-table.php
public function _js_vars() { $args = array( 'class' => get_class( $this ), 'screen' => array( 'id' => $this->screen->id, 'base' => $this->screen->base, ), ); printf( "<script type='text/javascript'>list_args = %s;</script>\n", wp_json_encode( $args ) ); }
Version | Description |
---|---|
3.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_list_table/_js_vars