WP_Widget_Categories::__construct()
Sets up a new Categories widget instance.
Method of the class: WP_Widget_Categories{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WP_Widget_Categories = new WP_Widget_Categories(); $WP_Widget_Categories->__construct();
Changelog
Since 2.8.0 | Introduced. |
WP_Widget_Categories::__construct() WP Widget Categories:: construct code WP 6.5.2
public function __construct() { $widget_ops = array( 'classname' => 'widget_categories', 'description' => __( 'A list or dropdown of categories.' ), 'customize_selective_refresh' => true, 'show_instance_in_rest' => true, ); parent::__construct( 'categories', __( 'Categories' ), $widget_ops ); }