WP_Theme_Install_List_Table::_js_vars() WordPress Method

The WP_Theme_Install_List_Table::_js_vars() method is used to enqueue JavaScript variables for use by the WordPress theme installer. These variables are used to track the current theme, paged view, and other data.

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

Send required variables to JavaScript land


Parameters

$extra_args

(array)(Optional)Unused.

Default value: array()


Top ↑

Source

File: wp-admin/includes/class-wp-theme-install-list-table.php

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


Top ↑

Changelog

Changelog
VersionDescription
3.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.