Automattic\WooCommerce\RestApi\Utilities

ImageAttachment::__construct()publicWC 1.0

Constructor.

{} Это метод класса: ImageAttachment{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$ImageAttachment = new ImageAttachment();
$ImageAttachment->__construct( $id, $object_id );
$id(int)
Attachment ID.
$object_id(int)
Object ID.

Код ImageAttachment::__construct() WC 6.9.4

public function __construct( $id = 0, $object_id = 0 ) {
	$this->id        = (int) $id;
	$this->object_id = (int) $object_id;
}