Skip to content
CODEX
  • Home
  • About Us
  • Gallery
  • Contact Us
  • Blog
    • Install and activate
    • Set and display a custom product variation value dynamically on WooCommerce single products
    • Multiple instances of flexslider on a single page
    • Bootstrap 4 Off-canvas Menue and Sidebar
    • How to add meta box to backend menu page
    • How To Export Posts To CSV In WordPress
    • How To Export Custom Posts and Metabox To CSV
    • Login with Phone Number in WordPress
    • How to Build Custom Elementor Widget
    • How to Send WordPress Email Using SMTP Server
    • How To Allow SVG Support In WordPress
    • Add Products to Woocommerce through WP API
    • How to add Whatsapp chat button in the site.
    • PHP Warning: POST Content-Length of 8978294 bytes exceeds the limit of 8388608 bytes in Unknown on line 0
    • How to bundle themes within plugin?
    • Remove Shortcode […] from Blog Preview
    • Allow SVG upload and preview to Media area of WordPress
    • WordPress REST API
    • Shopping Cart Item Quantity Increment Decrement with AJAX
    • WP_Widget is deprecated since version 4.3.0
    • Order get_terms() by hierarchy
    • Sort post by attributes – order
    • Bootstrap 4 – Pagination for WordPress
    • Simple javascript rang slider
    • XML error for extra spaces above the sitemap file
    • Displaying Author Lists with Pagination
  1. Home
  2. Blog
  3. WP_Widget is deprecated since version 4.3.0

WP_Widget is deprecated since version 4.3.0

Posted on May 20, 2020 | by admin

How to fix?

class myClass extends WP_Widget {
  function __construct(){
     parent::__construct(...) // calls constructor from WP_Widget class
  }
}

parent::WP_Widget to parent::__construct

Related articles

  • Login with Phone Number in WordPress
  • Post type by Year and Month
  • Example: Shortcode for WooCommerce Category Variable Item
Posted in Blog

© 2025 TemplateEYE. All rights reserved.
Power by DeshiSoft