W3cubDocs

/WordPress

WP_Theme_Install_List_Table::_js_vars( array $extra_args = array() )

Send required variables to JavaScript land

Parameters

$extra_argsarrayoptional
Unused.

Default:array()

Source

public function _js_vars( $extra_args = array() ) {
	global $tab, $type;
	parent::_js_vars( compact( 'tab', 'type' ) );
}

Changelog

Version Description
3.4.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_theme_install_list_table/_js_vars