Class AdminPageFramework_Widget
Provides methods for creating widgets.
Abstract
Package: AdminPageFramework\Factory\Widget
Since: 3.2.0
Located at factory/widget/AdminPageFramework_Widget.php
Package: AdminPageFramework\Factory\Widget
Since: 3.2.0
Located at factory/widget/AdminPageFramework_Widget.php
Methods summary
public
|
#
__construct( )
The constructor of the class object. Registers necessary hooks and sets up internal properties. Examplenew APF_Widget( __( 'Admin Page Framework', 'admin-page-framework-demo' ) ); // the widget title new APF_Widget_CustomFieldTypes( __( 'APF - Advanced', 'admin-page-framework-demo' ) ); new APF_Widget_Example( __( 'APF - GitHub Button', 'admin-page-framework-demo' ) ); Since
3.2.0
3.8.17 Made it accept an empty parameter for cases that some third-parties assume this is a WP_Widget extending class. Remark
If nothing is passed to the class constructor, it could be a third-party
attempts to instantiate this class by misunderstanding that this is an extended
class of the
WP_Widget class. |