Each widget needs to add his own controls which are basically the fields where the user select his custom data. This data is saved in the database and later it is used to generate custom output based on user selection. We need to add controls to the widget using the _register_controls() method.

Register Controls Method

All the controls are added to the widget using the _register_controls() method.

<?php
class Elementor_Test_Widget extends \Elementor\Widget_Base {

	protected function _register_controls() {

		$this->start_controls_section();

		$this->add_control();

		$this->end_controls_section();

	}

}

Available Control Types

Elementor has three types of controls that can be added to the widget:

Each control needs to be registered inside a control section. But in addition, they can be arranged in the Panel under control tabs or control popovers: