Title: Deprecated method usage in SetupWizard.php
Last modified: October 20, 2024

---

# Deprecated method usage in SetupWizard.php

 *  Resolved [mortaza](https://wordpress.org/support/users/mortazaamoo/)
 * (@mortazaamoo)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/deprecated-method-usage-in-setupwizard-php/)
 * In the file /wp-mail-smtp/src/Admin/SetupWizard.php, a deprecated method is used
   to check if WPForms Pro is active.
   Here’s the current code:`$is_wpforms_pro =
   wpforms()->pro;This method is deprecated and should be replaced with the wpforms()-
   >is_pro() method.Thank you for your time and effort in reviewing and implementing
   this change.

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

 *  Plugin Support [Darshana](https://wordpress.org/support/users/darshanaw/)
 * (@darshanaw)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/deprecated-method-usage-in-setupwizard-php/#post-18089361)
 * Hi [@mortazaamoo](https://wordpress.org/support/users/mortazaamoo/),
 * Thank you for reaching out! I’ll share your suggestion with our developers for
   further review.
 * Once again, thank you for taking the time to provide your feedback!
 *  Plugin Support [Darshana](https://wordpress.org/support/users/darshanaw/)
 * (@darshanaw)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/deprecated-method-usage-in-setupwizard-php/#post-18091383)
 * Hi [@mortazaamoo](https://wordpress.org/support/users/mortazaamoo/),
 * After checking with our developers, I can confirm that they’ve already implemented
   the following code:
 *     ```wp-block-code
       if ( method_exists( wpforms(), 'is_pro' ) ) {   $is_wpforms_pro = wpforms()->is_pro();} else {   $is_wpforms_pro = wpforms()->pro;}
       ```
   
 * Basically, we’re using the new method if it’s available, and defaulting to the
   old method otherwise.
 * If you’re currently using an older version of the WP Mail SMTP plugin, please
   make sure to update it to the latest version.
 * Thanks!

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

The topic ‘Deprecated method usage in SetupWizard.php’ is closed to new replies.

 * ![](https://ps.w.org/wp-mail-smtp/assets/icon-256x256.png?rev=1755440)
 * [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin](https://wordpress.org/plugins/wp-mail-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mail-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mail-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mail-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mail-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mail-smtp/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Darshana](https://wordpress.org/support/users/darshanaw/)
 * Last activity: [1 year, 7 months ago](https://wordpress.org/support/topic/deprecated-method-usage-in-setupwizard-php/#post-18091383)
 * Status: resolved