WP_List_Table::_js_vars
Sends required variables to JavaScript land.
Метод класса: WP_List_Table{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WP_List_Table = new WP_List_Table(); $WP_List_Table->_js_vars();
Список изменений
| С версии 3.1.0 | Введена. |
Код WP_List_Table::_js_vars() WP List Table:: js vars WP 7.1.2
public function _js_vars() {
$args = array(
'class' => get_class( $this ),
'screen' => array(
'id' => $this->screen->id,
'base' => $this->screen->base,
),
);
printf( "<script>list_args = %s;</script>\n", wp_json_encode( $args, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) );
}