W3cubDocs

/WordPress

WP_Text_Diff_Renderer_Table::__construct( array $params = array() )

Constructor – Call parent constructor with params array.

Description

This will set class properties based on the key value pairs in the array.

Parameters

$paramsarrayoptional

Default:array()

Source

public function __construct( $params = array() ) {
	parent::__construct( $params );
	if ( isset( $params['show_split_view'] ) ) {
		$this->_show_split_view = $params['show_split_view'];
	}
}

Changelog

Version Description
2.6.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_text_diff_renderer_table/__construct