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()
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' ) ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |