WC_Admin_List_Table_Coupons::render_expiry_date_column
Render column: expiry_date.
Method of the class: WC_Admin_List_Table_Coupons{}
No Hooks.
Returns
null. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->render_expiry_date_column();
WC_Admin_List_Table_Coupons::render_expiry_date_column() WC Admin List Table Coupons::render expiry date column code WC 10.8.1
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 '–';
}
}