WC_Product_Variation::get_customs_description │ public │ WC 11.3.0

Gets the customs description, inheriting from the parent in view context.

Метод класса: WC_Product_Variation{}

Хуков нет.

Возвращает

string|null.

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

$WC_Product_Variation = new WC_Product_Variation();
$WC_Product_Variation->get_customs_description( $context );
$context(строка)
View or edit context.
По умолчанию: 'view'

Список изменений

С версии 11.3.0 Введена.

Код WC_Product_Variation::get_customs_description() WC 11.3.0

public function get_customs_description( $context = 'view' ) {
	return $this->get_customs_prop( 'customs_description', $context );
}