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

Hookable

parent 1f094e40
No related branches found
No related tags found
1 merge request!7Feature/hookable object
Pipeline #7003 failed
...@@ -8,7 +8,7 @@ namespace WPDesk\PluginBuilder\Plugin; ...@@ -8,7 +8,7 @@ namespace WPDesk\PluginBuilder\Plugin;
* @author Grzegorz * @author Grzegorz
* *
*/ */
abstract class AbstractPlugin implements \WPDesk_Translable, HookableCollection, Hookable { abstract class AbstractPlugin implements \WPDesk_Translable, HookableCollection {
/** @var \WPDesk_Plugin_Info */ /** @var \WPDesk_Plugin_Info */
protected $plugin_info; protected $plugin_info;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
namespace WPDesk\PluginBuilder\Plugin; namespace WPDesk\PluginBuilder\Plugin;
interface HookableCollection { interface HookableCollection extends Hookable {
/** /**
* Add hookable object. * Add hookable object.
...@@ -11,13 +11,5 @@ interface HookableCollection { ...@@ -11,13 +11,5 @@ interface HookableCollection {
*/ */
public function add_hookable( $hookable_object ); public function add_hookable( $hookable_object );
/**
* Init hooks (actions and filters).
*
* @return null
*/
public function hooks();
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment