WC_Data::__construct( int|object|array $read )

Default constructor.


Description Description


Parameters Parameters

$read

(Required) ID to load from the DB (optional) or already queried data.


Top ↑

Source Source

File: includes/abstracts/abstract-wc-data.php

	public function __construct( $read = 0 ) {
		$this->data         = array_merge( $this->data, $this->extra_data );
		$this->default_data = $this->data;
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.