Skip to content
Snippets Groups Projects
Select Git revision
  • 586a44df39550c977a0b4677bf1602ac61262b17
  • master default protected
  • fix/woo-stubs-dir
  • default-packages
  • use-internal-packages
  • update-setup
  • feature/wpdesk-cs
  • 2.5.3
  • 2.5.2
  • 2.5.1
  • 2.5.0
  • 2.4.2
  • 2.4.1
  • 2.4.0
  • 2.3
  • 2.2.1
  • 2.2
  • 2.1
  • 2.0
  • 1.10.15
  • 1.10.12
  • 1.10.8
  • 1.10.7
  • 1.10.6
  • 1.10.5
  • 1.10.3
  • 1.10.2
27 results

Plugin.php

Blame
  • Plugin.php 755 B
    <?php
    /**
     * Plugin main class.
     */
    
    namespace WPDesk\PluginTemplate;
    
    use PluginTemplateVendor\WPDesk\PluginBuilder\Plugin\AbstractPlugin;
    use PluginTemplateVendor\WPDesk\PluginBuilder\Plugin\HookableCollection;
    use PluginTemplateVendor\WPDesk\PluginBuilder\Plugin\HookableParent;
    use Psr\Log\LoggerAwareInterface;
    use Psr\Log\LoggerAwareTrait;
    
    /**
     * Main plugin class. The most important flow decisions are made here.
     *
     * @codeCoverageIgnore
     */
    class Plugin extends AbstractPlugin implements LoggerAwareInterface, HookableCollection {
    
    	use LoggerAwareTrait;
    	use HookableParent;
    
    	/**
    	 * Init hooks.
    	 *
    	 * @return void
    	 * @codeCoverageIgnore
    	 */
    	public function hooks(): void {
    		parent::hooks();
    
    		$this->hooks_on_hookable_objects();
    	}
    }