• Resolved rajdeep007

    (@rajdeep007)


    Hello,

    Am trying to show a custom order meta value in my pdf invoice but as its a protected value it is not being displayed.

    Please help me out in this issue.

    Getting data under $this->order->meta_data.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi! You should use the meta getter instead:

    
    $this->order->get_meta( $key, $single = true, $context = 'edit' );
    

    for example, if you need meta data ‘my_field’, you can use:

    
    $my_field = $this->order->get_meta( 'my_field' );
    

    Hope that helps!
    Ewout

    Thread Starter rajdeep007

    (@rajdeep007)

    Hey,

    Thanks for your quick response now working fine

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Regarding Order Meta data’ is closed to new replies.