WC_Product_External::get_button_text()publicWC 1.0

Get button text.

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

Хуков нет.

Возвращает

Строку.

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

$WC_Product_External = new WC_Product_External();
$WC_Product_External->get_button_text( $context );
$context(строка)
What the value is for. Valid values are 'view' and 'edit'.
По умолчанию: 'view'

Код WC_Product_External::get_button_text() WC 8.7.0

public function get_button_text( $context = 'view' ) {
	return $this->get_prop( 'button_text', $context );
}