Skip to content
Snippets Groups Projects
Commit 86759c9a authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

feature(shops): added shops to plugin info

parent e18df43b
No related branches found
Tags 2.0.0-beta1
1 merge request!30feature(shops): added shops to plugin info
Pipeline #9218 failed with stages
in 1 minute and 6 seconds
## [2.0.0] - 2021-00-07
### Added
- plugin shops in WPDesk_Plugin_Info
## [1.4.4] - 2020-06-17
### Fixed
- Replaced class_exists to interface_exists for interfaces
## [1.4.3] - 2020-06-03
### Fixed
- Path for require_once
......
......@@ -16,6 +16,7 @@ if ( ! interface_exists( 'WPDesk_Has_Plugin_Info' ) ) {
* have to be compatible with PHP 5.2.x
*/
class WPDesk_Plugin_Info implements WPDesk_Translatable, WPDesk_Buildable, WPDesk_Has_Plugin_Info {
/** @var string */
private $plugin_file_name;
......@@ -43,6 +44,11 @@ class WPDesk_Plugin_Info implements WPDesk_Translatable, WPDesk_Buildable, WPDes
/** string */
private $text_domain;
/**
* @var array
*/
private $plugin_shops;
/**
* @return string
*/
......@@ -168,4 +174,26 @@ class WPDesk_Plugin_Info implements WPDesk_Translatable, WPDesk_Buildable, WPDes
public function set_text_domain( $value ) {
$this->text_domain = $value;
}
/**
* @return array
*/
public function get_plugin_shops() {
return $this->plugin_shops;
}
/**
* @param array $plugin_shops
*/
public function set_plugin_shops( $plugin_shops ) {
$this->plugin_shops = $plugin_shops;
}
/**
* @return string
*/
public function get_plugin_slug() {
return basename( $this->get_plugin_dir() );
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment