Search

WP_Widget

Core base class extended to register widgets.

Description Description

This class must be extended for each widget, and WP_Widget::widget() must be overridden.

If adding widget options, WP_Widget::update() and WP_Widget::form() should also be overridden.


A class is an entity that determines how an object will behave and what the object will contain. In other words, it is a blueprint or a set of instruction to build a specific type of object. The files of WordPress define many useful PHP Classes. This Site will try to list all/most of the core classes.