Add a filter to Customr details meta box

Issue #205 resolved
Valentina R created an issue

Can you add a filter at the end of the meta box with customer info, so that we can hook into it to display even more info about the customer?

https://bizzthemes.com/forums/topic/customer-information/

Comments (1)

  1. Željan Topić

    Added the filter with 3.1.9:

    do_action( 'woocommerce_admin_appointment_data_after_customer_details', $post->ID );
    

    Usage example:

    add_action( 'woocommerce_admin_appointment_data_after_customer_details', 'customer_data_test' );
    function customer_data_test ( $post_id ) {
    ?>
    <tr>
        <th><?php esc_html_e( 'Post ID:', 'woocommerce-appointments' ); ?></th>
        <td><?php echo $post_id; ?></td>
    </tr>
    <?php
    }
    
  2. Log in to comment