Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-builder
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
wp-builder
Commits
4cec81f4
Commit
4cec81f4
authored
6 years ago
by
Grzegorz Rola
Browse files
Options
Downloads
Patches
Plain Diff
Hookable
parent
1f094e40
No related branches found
No related tags found
1 merge request
!7
Feature/hookable object
Pipeline
#7003
failed
6 years ago
Stage: tools
Stage: tests
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Plugin/AbstractPlugin.php
+1
-1
1 addition, 1 deletion
src/Plugin/AbstractPlugin.php
src/Plugin/HookableCollection.php
+1
-9
1 addition, 9 deletions
src/Plugin/HookableCollection.php
with
2 additions
and
10 deletions
src/Plugin/AbstractPlugin.php
+
1
−
1
View file @
4cec81f4
...
...
@@ -8,7 +8,7 @@ namespace WPDesk\PluginBuilder\Plugin;
* @author Grzegorz
*
*/
abstract
class
AbstractPlugin
implements
\WPDesk_Translable
,
HookableCollection
,
Hookable
{
abstract
class
AbstractPlugin
implements
\WPDesk_Translable
,
HookableCollection
{
/** @var \WPDesk_Plugin_Info */
protected
$plugin_info
;
...
...
This diff is collapsed.
Click to expand it.
src/Plugin/HookableCollection.php
+
1
−
9
View file @
4cec81f4
...
...
@@ -2,7 +2,7 @@
namespace
WPDesk\PluginBuilder\Plugin
;
interface
HookableCollection
{
interface
HookableCollection
extends
Hookable
{
/**
* Add hookable object.
...
...
@@ -11,13 +11,5 @@ interface HookableCollection {
*/
public
function
add_hookable
(
$hookable_object
);
/**
* Init hooks (actions and filters).
*
* @return null
*/
public
function
hooks
();
}
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