WordPress at Your Fingertips
function is not described

WC_Product_External::set_button_text() public WC 3.0.0

Set button text.

{} It's a method of the class: WC_Product_External{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Product_External = new WC_Product_External();
$WC_Product_External->set_button_text( $button_text );
$button_text(string) (required)
Button text.

Changelog

Since 3.0.0 Introduced.

Code of WC_Product_External::set_button_text() WC 5.8.0

public function set_button_text( $button_text ) {
	$this->set_prop( 'button_text', $button_text );
}