_js_vars example


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

    /** * Checks to see if the theme is already installed. * * @since 3.4.0 * * @param stdClass $theme A WordPress.org Theme API object. * @return string Theme status. */
    private function _get_theme_status( $theme ) {
        
'search'      => $search_string,
            'features'    => $this->features,
            'paged'       => $this->get_pagenum(),
            'total_pages' => ! empty( $this->_pagination_args['total_pages'] ) ? $this->_pagination_args['total_pages'] : 1,
        );

        if ( is_array( $extra_args ) ) {
            $args = array_merge( $args$extra_args );
        }

        printf( "<script type='text/javascript'>var theme_list_args = %s;</script>\n", wp_json_encode( $args ) );
        parent::_js_vars();
    }
}
Home | Imprint | This part of the site doesn't use cookies.