WC_Order_Refund::get_refund_reason PHP Method

get_refund_reason() public method

Get refund reason.
Deprecation: 2.7
public get_refund_reason ( ) : integer | float
return integer | float
    public function get_refund_reason()
    {
        wc_deprecated_function('get_refund_reason', '2.7', 'get_reason');
        return $this->get_reason();
    }

Usage Example

コード例 #1
0
									</tbody>

									<tbody id="order_refunds">
										<?php 
foreach ($commission->get_refunds() as $refund_id => $amount) {
    $refund = new WC_Order_Refund($refund_id);
    ?>
										<tr class="refund Zero Rate">
											<td class="thumb"><div></div></td>

											<td class="name">
												<?php 
    echo esc_attr__('Refund', 'woocommerce') . ' #' . absint($refund->id) . ' - ' . esc_attr(date_i18n(get_option('date_format') . ', ' . get_option('time_format'), strtotime($refund->post->post_date)));
    ?>
												<?php 
    if ($refund->get_refund_reason()) {
        ?>
													<p class="description"><?php 
        echo esc_html($refund->get_refund_reason());
        ?>
</p>
												<?php 
    }
    ?>
											</td>

											<td class="quantity" width="1%">&nbsp;</td>

											<td class="line_cost" width="1%">
												<div class="view">
													<?php