# elementor/3.18.2/modules/promotions/admin-menu-items/custom-code-promotion-item.php

Elementor Website Builder – more than just a page builder, version 3.18.2. 33 lines.

- Page: https://pluginprobe.com/plugins/elementor/3.18.2/code/modules/promotions/admin-menu-items/custom-code-promotion-item.php
- Raw: https://pluginprobe.com/plugins/elementor/3.18.2/raw/modules/promotions/admin-menu-items/custom-code-promotion-item.php
- Modified: 2023-04-23T11:22:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/elementor/3.18.2/code/modules/promotions/admin-menu-items/custom-code-promotion-item.php#L10-L20`.

```php
<?php

namespace Elementor\Modules\Promotions\AdminMenuItems;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

class Custom_Code_Promotion_Item extends Base_Promotion_Item {
	public function get_label() {
		return esc_html__( 'Custom Code', 'elementor' );
	}

	public function get_page_title() {
		return esc_html__( 'Custom Code', 'elementor' );
	}

	public function get_promotion_title() {
		return esc_html__( 'Add Your Custom Code', 'elementor' );
	}

	public function render_promotion_description() {
		echo esc_html__(
			'Custom Code is a tool gives you one place where you can insert scripts, rather than dealing with dozens of different plugins and deal with code.',
			'elementor'
		);
	}

	public function get_cta_url() {
		return 'https://go.elementor.com/go-pro-custom-code/';
	}
}

```
