WordPress.org

Forums

WooCommerce - excelling eCommerce
[resolved] Replace WC_Email class function customer_new_account()? (2 posts)

  1. Michael
    Member
    Posted 2 years ago #

    Hello, let me start off by saying that the woocommerece plugin ROCKS!

    Okay, this may be a newbie question and I don't know if its possible to do, but here goes.

    Without editing any of the core files and strictly using functions.php in my child theme, I'd like to replace the function customer_new_account() that is within the WC_Email class to use my own custom function.

    For example, for any call to $mailer->customer_new_account( $user_id, $user_pass ) in the woocommerce plugin, I want to swap out those calls to essentially call my function "my_customer_new_account()."

    I'm not versed well enough in PHP class structuring to know if this is even doable. It's not the end of the world if I can't do this, but it would be helpful.

    Any pointers/suggestions would be greatly appreciated.

    Michael

    http://wordpress.org/extend/plugins/woocommerce/

  2. Michael
    Member
    Posted 2 years ago #

    No answer, marking this "resolved."

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic