PluginProbe
Code Snippets / 3.10.0
Code Snippets v3.10.0
3.10.2 3.10.1 3.10.0 3.10.0-beta.2 3.10.0-beta.1 4.0.0-beta.1 3.9.6 trunk 2.10.0 2.10.1 2.12.0 2.12.1 2.13.0 2.13.1 2.13.2 2.13.3 2.14.0 2.14.1 2.14.2 2.14.3 2.14.4 2.14.5 2.14.6 3.0.0 3.0.1 All 64 releases
code-snippets / php / Integration / Promotions / Notices / Elementor.php

Elementor.php in Code Snippets 3.10.0, at php/Integration/Promotions/Notices/Elementor.php

66 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Code_Snippets\Integration\Promotions\Notices;
4
5 /**
6 * Promotion class for Elementor Custom Code.
7 *
8 * @link https://elementor.com/help/custom-code-pro/
9 */
10 class Elementor extends Promotion_Base {
11
12 /**
13 * Get the name of the plugin being promoted.
14 *
15 * @return string The name of the plugin.
16 */
17 public function get_plugin_name(): string {
18 return __( 'Elementor Custom Code', 'code-snippets' );
19 }
20
21 /**
22 * Get the slug of the plugin being promoted.
23 *
24 * @return string The slug of the plugin.
25 */
26 public function get_plugin_slug(): string {
27 return 'elementor';
28 }
29
30 /**
31 * Get the admin screens where the promotion should be displayed.
32 *
33 * @return array An array of admin screen IDs.
34 */
35 public function get_plugin_admin_screens(): array {
36 return [
37 // Elementor Core.
38 'elementor_custom_code',
39 'elementor_page_elementor_custom_code',
40 // Elementor Pro.
41 'edit-elementor_snippet',
42 'elementor_snippet',
43 // New Elementor One.
44 'elementor_page_e-custom-code',
45 ];
46 }
47
48 /**
49 * Get the heading text for the promotion notice.
50 *
51 * @return string The promotion heading.
52 */
53 public function get_promotion_heading(): string {
54 return __( 'Upgrade to the industry standard for code management', 'code-snippets' );
55 }
56
57 /**
58 * Get the message text for the promotion notice.
59 *
60 * @return string The promotion message.
61 */
62 public function get_promotion_message(): string {
63 return __( 'Move your custom logic into a dedicated dashboard built for professionals. Experience a cleaner workflow with advanced security and global organization.', 'code-snippets' );
64 }
65 }
66