WP_Theme_Install_List_Table::_js_vars()publicWP 3.4.0

Send required variables to JavaScript land

Method of the class: WP_Theme_Install_List_Table{}

No Hooks.

Return

null. Nothing (null).

Usage

$WP_Theme_Install_List_Table = new WP_Theme_Install_List_Table();
$WP_Theme_Install_List_Table->_js_vars( $extra_args );
$extra_args(array)
Unused.
Default: array()

Notes

  • Global. String. $tab Current tab within Themes->Install screen
  • Global. String. $type Type of search.

Changelog

Since 3.4.0 Introduced.

WP_Theme_Install_List_Table::_js_vars() code WP 6.5.2

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