WC_Order_Refund::get_refunded_by PHP 메소드

get_refunded_by() 공개 메소드

Get ID of user who did the refund.
부터: 2.7
public get_refunded_by ( string $context = 'view' ) : integer
$context string
리턴 integer
    public function get_refunded_by($context = 'view')
    {
        return $this->get_prop('refunded_by', $context);
    }

Usage Example

예제 #1
0
 /**
  * Test: get_refunded_by
  */
 function test_get_refunded_by()
 {
     $object = new WC_Order_Refund();
     $object->set_refunded_by(1);
     $this->assertEquals(1, $object->get_refunded_by());
 }