Add_Webhooks_Integration

Class Add_Webhooks_Integration

Contents

  • Methods

  • Source Source

    File: src/integrations/webhooks/add-webhooks-integration.php

    class Add_Webhooks_Integration {
    
    	use Recipe\Integrations;
    
    	/**
    	 * Add_Integration constructor.
    	 */
    	public function __construct() {
    		$this->setup();
    	}
    
    	/**
    	 * Integration Set-up.
    	 */
    	protected function setup() {
    
    		$this->set_integration( 'WEBHOOKS' );
    
    		$this->set_name( 'Webhooks' );
    
    		$this->set_icon( __DIR__ . '/img/webhooks-icon.svg' );
    
    	}
    
    	/**
    	 * Explicitly return true because it doesn't depend on any 3rd-party plugin.
    	 *
    	 * @return bool
    	 */
    	public function plugin_active() {
    
    		return true;
    
    	}
    }
    

    Methods Methods

    • __construct — Add_Integration constructor.
    • plugin_active — Explicitly return true because it doesn't depend on any 3rd-party plugin.
    • setup — Integration Set-up.