PluginProbe
Code Snippets / 3.10.1
Code Snippets v3.10.1
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 / Insert_HTML_Snippet.php

Insert_HTML_Snippet.php in Code Snippets 3.10.1, at php/Integration/Promotions/Notices/Insert_HTML_Snippet.php

53 lines 1.3 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 Insert HTML Snippet.
7 *
8 * @link https://wordpress.org/plugins/insert-html-snippet/
9 */
10 class Insert_HTML_Snippet extends Promotion_Base {
11
12 /**
13 * Get the name of the plugin being promoted.
14 *
15 * @return string The plugin name.
16 */
17 public function get_plugin_name(): string {
18 return __( 'Insert HTML Snippet', 'code-snippets' );
19 }
20
21 /**
22 * Get the slug of the plugin being promoted.
23 *
24 * @return string The plugin slug.
25 */
26 public function get_plugin_slug(): string {
27 return 'insert-html-snippet';
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 'toplevel_page_insert-html-snippet-manage',
38 'insert-html-snippet_page_insert-html-snippet-settings',
39 'insert-html-snippet_page_insert-html-snippet-about',
40 'insert-html-snippet_page_insert-html-snippet-suggest-features',
41 ];
42 }
43
44 /**
45 * Get the message text for the promotion notice.
46 *
47 * @return string The promotion message.
48 */
49 public function get_promotion_message(): string {
50 return __( 'Move your functionality to Code Snippets and reduce your dependency on third-party plugins.', 'code-snippets' );
51 }
52 }
53