WC_Admin_API_Keys_Table_List::column_truncated_key()publicWC 1.0

Return truncated consumer key column.

Method of the class: WC_Admin_API_Keys_Table_List{}

No Hooks.

Return

String.

Usage

$WC_Admin_API_Keys_Table_List = new WC_Admin_API_Keys_Table_List();
$WC_Admin_API_Keys_Table_List->column_truncated_key( $key );
$key(array) (required)
Key data.

WC_Admin_API_Keys_Table_List::column_truncated_key() code WC 9.4.2

public function column_truncated_key( $key ) {
	return '<code>***' . esc_html( $key['truncated_key'] ) . '</code>';
}