Title: Deprecated error explode in get_recipient function
Last modified: July 2, 2024

---

# Deprecated error explode in get_recipient function

 *  Resolved [Appaloosa](https://wordpress.org/support/users/benoitappaloosa/)
 * (@benoitappaloosa)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/deprecated-error-explode-in-get_recipient-function/)
 * Hi,
 * Regarding to file in includes/emails/class-wc-email.php
 * There is an php implode in a public function call get_recipient() line 447 and
   this give me an error “Deprecated: explode(): Passing null to parameter #2 ($
   string) of type string is deprecated” since I upgrade my server to php 8.2.
 * Will there be an update to this function?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Support [Rajesh K. (woo-hc)](https://wordpress.org/support/users/rajeshml/)
 * (@rajeshml)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/deprecated-error-explode-in-get_recipient-function/#post-17866741)
 * Hello [@benoitappaloosa](https://wordpress.org/support/users/benoitappaloosa/),
 * Thank you for reaching out to us.
 * The function explode() is deprecated, which means it’s no longer supported in
   newer versions of PHP.
 * To address this issue, I recommend updating your WooCommerce plugin to the latest
   version, as we regularly fix bugs and improve compatibility with newer PHP versions
   in our updates.
 * If you’ve tried all these steps and the problem persists, we would appreciate
   it if you could share the **System Status Report** (which you can find via **
   WooCommerce > Status > Get system report > Copy for support**) as well. You can
   paste it via [https://gist.github.com/](https://gist.github.com/) and send the
   link here.
 * Let us know how that goes. Looking forward to helping you.
 *  Thread Starter [Appaloosa](https://wordpress.org/support/users/benoitappaloosa/)
 * (@benoitappaloosa)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/deprecated-error-explode-in-get_recipient-function/#post-17866764)
 * Thank Rajesk for your answer. I know explode is deprecated. My customer website
   use the WooCommerce plugin latest version (9.0.2) and the server run under php
   8.2. No problems at this level.
 * This is why I wonder about the presence of this php explode in the function in
   the Woocommerce sources You can also see it on the Woocommerce Github repository:
   [https://github.com/woocommerce/woocommerce/blob/trunk/plugins/woocommerce/includes/emails/class-wc-email.php](https://github.com/woocommerce/woocommerce/blob/trunk/plugins/woocommerce/includes/emails/class-wc-email.php)
   on line 445.
 *  Plugin Support [Shameem – a11n](https://wordpress.org/support/users/shameemreza/)
 * (@shameemreza)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/deprecated-error-explode-in-get_recipient-function/#post-17868139)
 * Hi [@benoitappaloosa](https://wordpress.org/support/users/benoitappaloosa/)
 * I understand your concern about the deprecated function in the WooCommerce source
   code.
 * Our development team is constantly working on improving and updating our codebase
   to ensure it’s compatible with the latest PHP versions. This includes replacing
   deprecated functions with newer, supported ones.
 * It would be great if you could create an enhancement request on our GitHub repo
   [here](https://github.com/woocommerce/woocommerce), so our developer team can
   review it and provide further insights.
 * You can also ask for insight related to those on either the [WooCommerce Advanced Facebook group](https://www.facebook.com/groups/advanced.woocommerce/)
   or the [WooCommerce Community Slack](https://woocommerce.com/community-slack/).
   Many of our developers hang out there and will be able to offer insights into
   your question.
 * In the meantime, if you’re experiencing any issues or errors due to this function,
   please let us know so we can assist you further.
 * Thank you for your patience and understanding. We appreciate your help in making
   WooCommerce better.
 *  Thread Starter [Appaloosa](https://wordpress.org/support/users/benoitappaloosa/)
 * (@benoitappaloosa)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/deprecated-error-explode-in-get_recipient-function/#post-17868205)
 * Thanks a lot Shameem.
   I’ll put this issue on your GitHub repo.
 * Have a nice day.
 *  [ckadenge (woo-hc)](https://wordpress.org/support/users/ckadenge/)
 * (@ckadenge)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/deprecated-error-explode-in-get_recipient-function/#post-17868584)
 * Hi [@benoitappaloosa](https://wordpress.org/support/users/benoitappaloosa/),
 * We appreciate your efforts. Our developers will be able to pick it up from there.
 * With that said, I’ll go ahead and mark this thread as solved.
 * Feel free to reach out if you have any further questions.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Deprecated error explode in get_recipient function’ is closed to new 
replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [deprecated](https://wordpress.org/support/topic-tag/deprecated/)
 * [explode](https://wordpress.org/support/topic-tag/explode/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 5 replies
 * 4 participants
 * Last reply from: [ckadenge (woo-hc)](https://wordpress.org/support/users/ckadenge/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/deprecated-error-explode-in-get_recipient-function/#post-17868584)
 * Status: resolved