Title: php notice: WP_Widget is deprecated
Last modified: August 30, 2016

---

# php notice: WP_Widget is deprecated

 *  [Ryan Tvenge](https://wordpress.org/support/users/rtvenge/)
 * (@rtvenge)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/php-notice-wp_widget-is-deprecated/)
 * It looks like there is some deprecated code in the plugin. You’ll see this notice
   possibly:
 * > The called constructor method for WP_Widget is deprecated since version 4.3.0!
   > Use __construct() instead. in /srv/path/wp/wp-includes/functions.php on line
   > 3457asdf
 * Easy fix. Change custom-post-type-list-widget.php line 18 from:
 * `parent::WP_Widget(false, $name = 'Custom Post Type List Widget');`
 * to
 * `parent::__construct(false, $name = 'Custom Post Type List Widget');`
 * [https://wordpress.org/plugins/custom-post-type-list-widget/](https://wordpress.org/plugins/custom-post-type-list-widget/)

The topic ‘php notice: WP_Widget is deprecated’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-post-type-list-widget.svg)
 * [Custom Post Type List Widget](https://wordpress.org/plugins/custom-post-type-list-widget/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-post-type-list-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-post-type-list-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-post-type-list-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-post-type-list-widget/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Ryan Tvenge](https://wordpress.org/support/users/rtvenge/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/php-notice-wp_widget-is-deprecated/)
 * Status: not resolved