WC_Admin_List_Table_Coupons::render_expiry_date_column()protectedWC 1.0

Render column: expiry_date.

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

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->render_expiry_date_column();

Code of WC_Admin_List_Table_Coupons::render_expiry_date_column() WC 6.7.0

protected function render_expiry_date_column() {
	$expiry_date = $this->object->get_date_expires();

	if ( $expiry_date ) {
		echo esc_html( $expiry_date->date_i18n( 'F j, Y' ) );
	} else {
		echo '–';
	}
}