plugin_text_domain );
return $columns;
}
// Prepare content for the WooCommerce Orders table.
function one_acc_woo_order_status_column( $column, $post_id ) {
switch ( $column ) {
case 'oneacc-validation-status':
$order = wc_get_order( $post_id );
$oneacc_order_status = $order->get_meta( $this->av_status_key, true );
if ( $oneacc_order_status === $this->status_success ) {
echo "" . __( 'User age is valid', $this->plugin_text_domain ) . "";
} elseif ( $oneacc_order_status === $this->status_failed ) {
echo "" . __( 'User age is not valid', $this->plugin_text_domain ) . "";
} else {
echo "" . __( 'Status is unavailable', $this->plugin_text_domain ) . "";
}
break;
}
}
}