PluginProbe
Code Snippets / 4.0.0-beta.2
Code Snippets v4.0.0-beta.2
4.0.0-beta.2 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 All 65 releases
code-snippets / php / Integration / Promotions / Notices / WP_Headers_And_Footers.php

WP_Headers_And_Footers.php in Code Snippets 4.0.0-beta.2, at php/Integration/Promotions/Notices/WP_Headers_And_Footers.php

50 lines 1.1 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 the Insert Headers and Footers plugin.
7 *
8 * @link https://wordpress.org/plugins/wp-headers-and-footers/
9 */
10 class WP_Headers_And_Footers 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 Headers and Footers', '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 'wp-headers-and-footers';
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 'settings_page_wp-headers-and-footers',
38 ];
39 }
40
41 /**
42 * Get the heading text for the promotion notice.
43 *
44 * @return string The promotion heading.
45 */
46 public function get_promotion_heading(): string {
47 return __( 'Looking for a better way to manage your custom code?', 'code-snippets' );
48 }
49 }
50