WordPress at Your Fingertips
function is not described

WC_Payment_Token_CC::set_last4() public WC 2.6.0

Set the last four digits.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Payment_Token_CC = new WC_Payment_Token_CC();
$WC_Payment_Token_CC->set_last4( $last4 );
$last4(string) (required)
Credit card last four digits.

Changelog

Since 2.6.0 Introduced.

Code of WC_Payment_Token_CC::set_last4() WC 5.9.0

public function set_last4( $last4 ) {
	$this->set_prop( 'last4', $last4 );
}