WC_Product_External::get_button_text()publicWC 1.0

Get button text.

Method of the class: WC_Product_External{}

No Hooks.

Return

String.

Usage

$WC_Product_External = new WC_Product_External();
$WC_Product_External->get_button_text( $context );
$context(string)
What the value is for. Valid values are 'view' and 'edit'.
Default: 'view'

WC_Product_External::get_button_text() code WC 9.4.2

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