• Resolved ttremain

    (@ttremain)


    I’m trying to capture the billing address as it gets saved, when the user creates his account, and when editing their address.

    add_action( 'woocommerce_created_customer', 'set_custom_wc_user_membership_columns',1 ); // register/checkout
    add_action( 'woocommerce_save_account_details', 'set_custom_wc_user_membership_columns',1 ); // edit WC account
    function set_custom_wc_user_membership_columns( $user_id ) {
    	file_put_contents( ABSPATH.'/newtestdump.txt', 'Got Here'. print_r($_POST, true), FILE_APPEND );
    }

    The hooks don’t fire.

    Any help would be appreciated.

    • This topic was modified 6 years, 3 months ago by ttremain.
    • This topic was modified 6 years, 3 months ago by ttremain.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    Thread Starter ttremain

    (@ttremain)

    Gee, thank you for the “form” response.

    I think I figured it out anyway.

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    I’m glad to hear you figured it out – thank you for the update!

    Anything you can share would be helpful to someone else looking to solve this as well.

    Thread Starter ttremain

    (@ttremain)

    It’s a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to answer that.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Trying to capture billing address’ is closed to new replies.