WP_Text_Diff_Renderer_Table::__construct() WordPress Method

The WP_Text_Diff_Renderer_Table::__construct() method is used to create a new Text_Diff_Renderer_Table object.

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.


Top ↑

Parameters

$params

(array)(Optional)

Default value: array()


Top ↑

Source

File: wp-includes/class-wp-text-diff-renderer-table.php

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


Top ↑

Changelog

Changelog
VersionDescription
2.6.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.