Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-builder
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
wp-builder
Commits
86759c9a
Commit
86759c9a
authored
3 years ago
by
Grzegorz Rola
Browse files
Options
Downloads
Patches
Plain Diff
feature(shops): added shops to plugin info
parent
e18df43b
No related branches found
Branches containing commit
Tags
2.0.0-beta1
Tags containing commit
1 merge request
!30
feature(shops): added shops to plugin info
Pipeline
#9218
failed with stages
in 1 minute and 6 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+4
-1
4 additions, 1 deletion
CHANGELOG.md
src/Plugin/WithoutNamespace/Plugin_Info.php
+28
-0
28 additions, 0 deletions
src/Plugin/WithoutNamespace/Plugin_Info.php
with
32 additions
and
1 deletion
CHANGELOG.md
+
4
−
1
View file @
86759c9a
## [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
...
...
This diff is collapsed.
Click to expand it.
src/Plugin/WithoutNamespace/Plugin_Info.php
+
28
−
0
View file @
86759c9a
...
...
@@ -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
()
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment