Add_Wp_Integration
Class Add_Wp_Integration
Source Source
File: src/integrations/wp/add-wp-integration.php
class Add_Wp_Integration { use Recipe\Integrations; /** * Add_Wp_Integration constructor. */ public function __construct() { $this->setup(); } /** * Setup Integration */ protected function setup() { $this->set_integration( 'WP' ); $this->set_name( 'WordPress' ); $this->set_icon( __DIR__ . '/img/wordpress-icon.svg' ); $this->set_plugin_file_path( '' ); } /** * Explicitly return true because WordPress is always active. * * @return bool */ public function plugin_active() { return true; } }
Expand full source code Collapse full source code View on Github
Methods Methods
- __construct — Add_Wp_Integration constructor.
- plugin_active — Explicitly return true because WordPress is always active.
- setup — Setup Integration