WP_Text_Diff_Renderer_Table::__set

Advertisement

Summery Summery

Make private properties settable for backward compatibility.

Syntax Syntax

WP_Text_Diff_Renderer_Table::__set( string $name, mixed $value )

Parameters Parameters

$name

(Required) Property to check if set.

$value

(Required) Property value.

Return Return

(mixed) Newly-set property.

Source Source

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

	public function __set( $name, $value ) {
		if ( in_array( $name, $this->compat_fields, true ) ) {
			return $this->$name = $value;
		}
	}

Advertisement

Changelog Changelog

Changelog
Version Description
4.0.0 Introduced.

Advertisement

Leave a Reply