WithoutNamespace
2 weeks ago
AbstractPlugin.php
2 weeks ago
Activateable.php
2 weeks ago
ActivationAware.php
2 weeks ago
ActivationTracker.php
2 weeks ago
Conditional.php
2 weeks ago
Deactivateable.php
2 weeks ago
Hookable.php
2 weeks ago
HookableCollection.php
2 weeks ago
HookableParent.php
2 weeks ago
HookablePluginDependant.php
2 weeks ago
PluginAccess.php
2 weeks ago
SlimPlugin.php
2 weeks ago
TemplateLoad.php
2 weeks ago
SlimPlugin.php
20 lines
| 1 | <?php |
| 2 | |
| 3 | namespace FSVendor\WPDesk\PluginBuilder\Plugin; |
| 4 | |
| 5 | /** |
| 6 | * Most clean plugin class with only most important details. |
| 7 | */ |
| 8 | abstract class SlimPlugin implements \FSVendor\WPDesk_Translatable |
| 9 | { |
| 10 | /** |
| 11 | * Initializes plugin external state. |
| 12 | * |
| 13 | * The plugin internal state is initialized in the constructor and the plugin should be internally consistent after creation. |
| 14 | * The external state includes hooks execution, communication with other plugins, integration with WC etc. |
| 15 | * |
| 16 | * @return void |
| 17 | */ |
| 18 | abstract public function init(); |
| 19 | } |
| 20 |