# code-snippets/4.0.0-beta.2/php/Integration/Promotions/Notices/Elementor.php

Code Snippets, version 4.0.0-beta.2. 66 lines.

- Page: https://pluginprobe.com/plugins/code-snippets/4.0.0-beta.2/code/php/Integration/Promotions/Notices/Elementor.php
- Raw: https://pluginprobe.com/plugins/code-snippets/4.0.0-beta.2/raw/php/Integration/Promotions/Notices/Elementor.php
- Modified: 2026-06-19T15:56:12+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/code-snippets/4.0.0-beta.2/code/php/Integration/Promotions/Notices/Elementor.php#L10-L20`.

```php
<?php

namespace Code_Snippets\Integration\Promotions\Notices;

/**
 * Promotion class for Elementor Custom Code.
 *
 * @link https://elementor.com/help/custom-code-pro/
 */
class Elementor extends Promotion_Base {

	/**
	 * Get the name of the plugin being promoted.
	 *
	 * @return string The name of the plugin.
	 */
	public function get_plugin_name(): string {
		return __( 'Elementor Custom Code', 'code-snippets' );
	}

	/**
	 * Get the slug of the plugin being promoted.
	 *
	 * @return string The slug of the plugin.
	 */
	public function get_plugin_slug(): string {
		return 'elementor';
	}

	/**
	 * Get the admin screens where the promotion should be displayed.
	 *
	 * @return array An array of admin screen IDs.
	 */
	public function get_plugin_admin_screens(): array {
		return [
			// Elementor Core.
			'elementor_custom_code',
			'elementor_page_elementor_custom_code',
			// Elementor Pro.
			'edit-elementor_snippet',
			'elementor_snippet',
			// New Elementor One.
			'elementor_page_e-custom-code',
		];
	}

	/**
	 * Get the heading text for the promotion notice.
	 *
	 * @return string The promotion heading.
	 */
	public function get_promotion_heading(): string {
		return __( 'Upgrade to the industry standard for code management', 'code-snippets' );
	}

	/**
	 * Get the message text for the promotion notice.
	 *
	 * @return string The promotion message.
	 */
	public function get_promotion_message(): string {
		return __( 'Move your custom logic into a dedicated dashboard built for professionals. Experience a cleaner workflow with advanced security and global organization.', 'code-snippets' );
	}
}

```
