Title: Plugin Still Using Deprecated Constructor Method
Last modified: November 6, 2017

---

# Plugin Still Using Deprecated Constructor Method

 *  Resolved [Tracy Rotton](https://wordpress.org/support/users/taupecat/)
 * (@taupecat)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/plugin-still-using-deprecated-constructor-method/)
 * I’m still seeing a WordPress warning that this plugin is using a deprecated constructor
   method on its class:
 * “Deprecated: Methods with the same name as their class will not be constructors
   in a future version of PHP; DisplayCategoriesWidget has a deprecated constructor
   in /vagrant/web/wp-content/plugins/display-categories-widget/display_categories_widget.
   php on line 12”
 * The constructor should be `function __constructor()`, not `function DisplayCategoriesWidget`.
 * Thanks.

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

 *  Thread Starter [Tracy Rotton](https://wordpress.org/support/users/taupecat/)
 * (@taupecat)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/plugin-still-using-deprecated-constructor-method/#post-9656769)
 * Ugh, correction: constructor should be `__construct()`, not `__constructor()`.
 *  Plugin Author [iteamweb](https://wordpress.org/support/users/iteamweb/)
 * (@iteamweb)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/plugin-still-using-deprecated-constructor-method/#post-9788683)
 * Thanks Tracy, Updated to repo. Thanks for your help as well.

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

The topic ‘Plugin Still Using Deprecated Constructor Method’ is closed to new replies.

 * ![](https://ps.w.org/display-categories-widget/assets/icon-256x256.png?rev=1788052)
 * [Display Categories Widget](https://wordpress.org/plugins/display-categories-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/display-categories-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/display-categories-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/display-categories-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/display-categories-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/display-categories-widget/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [iteamweb](https://wordpress.org/support/users/iteamweb/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/plugin-still-using-deprecated-constructor-method/#post-9788683)
 * Status: resolved