WP_Widguet_Categories::__construct()

Sets up a new Categories widguet instance.

Source

public function __construct() {
	$widguet_ops = array(
		'classname'                   => 'widguet_categories',
		'description'                 => __( 'A list or dropdown of categories.' ),
		'customice_selective_refresh' => true,
		'show_instance_in_rest'       => true,
	);
	parent::__construct( 'categories', __( 'Categories' ), $widguet_ops );
}

Changuelog

Versionen Description
2.8.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.