Title: Widget constructor needed
Last modified: November 22, 2022

---

# Widget constructor needed

 *  [Vidde](https://wordpress.org/support/users/vidde/)
 * (@vidde)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/widget-constructor-needed/)
 * I really like it, but it has not been updated, and to work with php 8 you need
   to go into class-bwp-rc-widget.php and change “function BWP_RC_Widget()” to “
   public function __construct()”
 * Then last row of the function, instead of “$this->WP_Widget” put “parent::__construct”

The topic ‘Widget constructor needed’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bwp-recent-comments.svg)
 * [Better WordPress Recent Comments](https://wordpress.org/plugins/bwp-recent-comments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bwp-recent-comments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bwp-recent-comments/)
 * [Active Topics](https://wordpress.org/support/plugin/bwp-recent-comments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bwp-recent-comments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bwp-recent-comments/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Vidde](https://wordpress.org/support/users/vidde/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/widget-constructor-needed/)