PluginProbe
QuadMenu – Mega Menu / 3.3.8
QuadMenu – Mega Menu v3.3.8
3.3.8 3.3.7 3.3.6 trunk 1.8.4 1.8.5 1.8.7 1.8.8 1.8.9 1.9.0 1.9.2 1.9.3 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 All 88 releases
quadmenu / jetpack_vendor / quadlayers / wp-notice-plugin-promote / src / PluginBySlugV2.php

PluginBySlugV2.php in QuadMenu – Mega Menu 3.3.8, at jetpack_vendor/quadlayers/wp-notice-plugin-promote/src/PluginBySlugV2.php

68 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * QuadLayers WP Notice Plugin Promote
4 *
5 * @package quadlayers/wp-notice-plugin-promote
6 * @author QuadLayers
7 * @link https://github.com/quadlayers/wp-notice-plugin-promote
8 * @copyright Copyright (c) 2023
9 * @license GPL-3.0
10 */
11
12 namespace QuadLayers\WP_Notice_Plugin_Promote;
13
14 /**
15 * PluginBySlug Class
16 * This class handles plugin data based on plugin slug
17 *
18 * @since 1.0.0
19 */
20 class PluginBySlugV2 {
21
22 use Traits\PluginActions;
23
24 /**
25 * Plugin instance.
26 *
27 * @var array
28 */
29 protected static $instance = array();
30
31 /**
32 * Plugin slug.
33 *
34 * @var string
35 */
36 protected $plugin_slug;
37
38
39 /**
40 * Plugin install link.
41 *
42 * @var string
43 */
44 protected $plugin_install_link;
45
46
47 /**
48 * Plugin install label.
49 *
50 * @var string
51 */
52 protected $plugin_install_label;
53
54 /**
55 * Contructor.
56 *
57 * @param array $notice Plugin notice.
58 */
59 public function __construct( array $notice ) {
60 foreach ( $notice as $key => $value ) {
61 if ( property_exists( $this, $key ) ) {
62 $this->$key = $value;
63 }
64 }
65 }
66
67 }
68