WordPress at Your Fingertips
function is not described

WP_List_Table::_js_vars() public WP 3.1.0

Sends required variables to JavaScript land.

{} It's a method of the class: WP_List_Table{}

No Hooks.

Return

null. Nothing.

Usage

$WP_List_Table = new WP_List_Table();
$WP_List_Table->_js_vars();

Changelog

Since 3.1.0 Introduced.

Code of WP_List_Table::_js_vars() WP 5.8.1

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 ) );
}