WordPress at Your Fingertips
function is not described

WP_Theme_Install_List_Table::_js_vars() public WP 3.4.0

Send required variables to JavaScript land

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

No Hooks.

Return

null. Nothing.

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.

Code of WP_Theme_Install_List_Table::_js_vars() WP 5.8.2

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