# Dynamic Tags Data

Elementor Core Advanced

Each dynamic tag requires basic information like the unique ID, title, group and category.

# Data Methods

Dynamic tags data is "returned" by these methods:

class Elementor_Test_Tag extends \Elementor\Core\DynamicTags\Tag {

	public function get_name() {
		return 'tag-name';
	}

	public function get_title() {
		return esc_html__( 'Dynamic Tag Name', 'plugin-name' );
	}

	public function get_group() {
		return [ 'group-name' ];
	}

	public function get_categories() {
		return [ \Elementor\Modules\DynamicTags\Module::TEXT_CATEGORY ];
	}

}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  • Dynamic Tag Name - The get_name() method returns a unique ID that will be used in the code.

  • Dynamic Tag Title – The get_title() method returns the tag label displayed to the user.

  • Dynamic Tag Group – The get_group() – method returns an array of groups the tag will appear under.

  • Dynamic Tag Categories – The get_categories() method returns an array of control categories the tag belongs to.