# Dynamic Tags Structure
Elementor Core AdvancedEach dynamic tag needs to have a few basic settings, such as a unique name. On top of that, there are some advanced settings like dynamic tag controls, which are basically optional fields where users can configure their custom data. There is also a render method that generates the final output based on user settings taken from the dynamic tag’s controls.
# Extending Dynamic Tags
To create your own control, you need to extend the dynamic tags control to inherit its methods:
class Elementor_Test_Tag extends \Elementor\Core\DynamicTags\Tag {
}
1
2
2
# Dynamic Tags Methods
A simple dynamic tag skeleton will look like this:
class Elementor_Test_Tag extends \Elementor\Core\DynamicTags\Tag {
public function get_name() {}
public function get_title() {}
public function get_group() {}
public function get_categories() {}
protected function register_controls() {}
public function render() {}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
The dynamic tags methods can be divided into the following groups:
Please note that the \Elementor\Core\DynamicTags\Tag
class has many more methods, but the methods mentioned above will cover the vast majority of your needs.