Title: Updated constructor
Last modified: August 31, 2016

---

# Updated constructor

 *  Resolved [dsmiller](https://wordpress.org/support/users/dsmiller/)
 * (@dsmiller)
 * [10 years ago](https://wordpress.org/support/topic/updated-constructor/)
 * As I’ve tried to say on your website (but have had lots of trouble with the “
   comment editor”), here’s a revised constructor–replacing the deprecated one:
 *     ```
       /**
        * CONSTRUCTOR
        */
       function __construct()
       {
       	// set widget options
       	$widget_ops = array (
       		'classname' => 'customMetaWidget',
       		'description' => __( 'Hide the individual log in/out, admin, feed and WordPress links', 'customMetaWidget' )
       	);
       	parent::__construct(
       		'customMetaWidget', // Base ID
       		 __('Custom Meta', 'customMetaWidget'), // Name
       		$widget_ops // Args
       	);
       }
       ```
   
 * Thanks. (And sorry for all of the postings–feel free to (in fact, please) delete
   the ones I posted on your site.)
 * Scott
 * [https://wordpress.org/plugins/custom-meta-widget/](https://wordpress.org/plugins/custom-meta-widget/)

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

 *  [BC563](https://wordpress.org/support/users/bc563/)
 * (@bc563)
 * [10 years ago](https://wordpress.org/support/topic/updated-constructor/#post-7167241)
 * Scott,
    Is your post related to these entries that keep showing up in my debug.
   log?
 * The called constructor method for WP_Widget is **deprecated** since version 4.3.0!
   Use
 *     ```
       __construct()
       ```
   
 *  instead. in /home/ptapal5/public_html/ptactest/wp-includes/functions.php on 
   line 3624
 * Is someone working on a new update to the plugin to include this fix?
 * Thanks, BC
 *  Thread Starter [dsmiller](https://wordpress.org/support/users/dsmiller/)
 * (@dsmiller)
 * [10 years ago](https://wordpress.org/support/topic/updated-constructor/#post-7167242)
 * Yes. And I posted the code above to avoid the deprecated technique. It doesn’t
   look like the plugin author is still active, so it may be a while for the fix
   to be committed to the code repository–if ever.
 *  [BC563](https://wordpress.org/support/users/bc563/)
 * (@bc563)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/updated-constructor/#post-7167248)
 * Thanks! Your code worked.
    Sorry for the sloppy cut and paste in my earlier message.
 *  Plugin Author [Luke Mlsna](https://wordpress.org/support/users/bitacre/)
 * (@bitacre)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/updated-constructor/#post-7167250)
 * Your fixed pushed in 1.4.8 w/ credit. Thanks!

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

The topic ‘Updated constructor’ is closed to new replies.

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

 * 4 replies
 * 3 participants
 * Last reply from: [Luke Mlsna](https://wordpress.org/support/users/bitacre/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/updated-constructor/#post-7167250)
 * Status: resolved