src/WooCommerce/WooCommerce2/Invoice/Creator.php
public function getOrderMeta($property)
    {
    	/** @var \WC_Order $order */
	    $order = $this->invoiceSource->getOrder()->getSource();
	    $value  = get_post_meta( $order->id, $property, true);
        // get_post_meta() can return false or ''.
        if (empty($value)) {
            // Not found: indicate so by returning null.
            $value = null;
        }
        return $value;
    }
public function getOrderMeta($property)
    {
    	/** @var \WC_Order $order */
	    $order = $this->invoiceSource->getOrder()->getSource();
	    $value  = get_post_meta( $order->id, $property, true);
        // get_post_meta() can return false or ''.
        if (empty($value)) {
            // Not found: indicate so by returning null.
            $value = null;
        }
        return $value;
    }
public function getOrderMeta ( $ property ) { /** @var \WC_Order $order */ $ order = $ this -> invoiceSource -> getOrder ( ) -> getSource ( ) ; $ value = get_post_meta ( $ order -> id , $ property , true ) ; // get_post_meta() can return false or ''. if ( empty ( $ value ) ) { // Not found: indicate so by returning null. $ value = null ; } return $ value ; }
Token callback to access the order post meta when resolving tokens.

@param string $property

@return null|string
The value for the meta data with the given name, null if not available.
Token callback to access the order post meta when resolving tokens .