-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
54efbbd
commit 17618ec
Showing
2 changed files
with
95 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
<?php | ||
/** | ||
* GTM Kit plugin file. | ||
* | ||
* @package GTM Kit | ||
*/ | ||
|
||
namespace TLA_Media\GTM_Kit\Admin; | ||
|
||
/** | ||
* Class for compatability checks. | ||
*/ | ||
final class Compatability { | ||
|
||
/** | ||
* Map of all the default options | ||
* | ||
* @var array | ||
*/ | ||
private static $map = [ | ||
'plugins' => [ | ||
'ti-woocommerce-wishlist/ti-woocommerce-wishlist.php' => [ | ||
'Name' => 'TI WooCommerce Wishlist', | ||
'Description' => 'Add wishlist compatability', | ||
'events' => [ | ||
'add_to_wishlise', | ||
], | ||
'add-on' => [ | ||
'woo', | ||
], | ||
], | ||
], | ||
'themes' => [ | ||
'woodmart' => [ | ||
'Name' => 'Woodmart', | ||
'Description' => 'Add wishlist compatability', | ||
'events' => [ | ||
'add_to_wishlise', | ||
], | ||
'add-on' => [ | ||
'woo', | ||
], | ||
], | ||
], | ||
]; | ||
|
||
/** | ||
* Get the integrations | ||
* | ||
* @return array | ||
*/ | ||
public static function get_integrations(): array { | ||
|
||
$integrations_data = [ | ||
'woocommerce' => [ | ||
'title' => 'WooCommerce', | ||
'option' => 'woocommerce_integration', | ||
'description' => __( 'The #1 open source eCommerce platform built for WordPress', 'gtm-kit' ), | ||
'path' => 'woocommerce', | ||
'type' => 'core', | ||
], | ||
'cf7' => [ | ||
'title' => 'Contact Form 7', | ||
'option' => 'cf7_integration', | ||
'description' => __( 'Just another contact form plugin for WordPress. Simple but flexible', 'gtm-kit' ), | ||
'path' => 'cf7', | ||
'type' => 'core', | ||
], | ||
'edd' => [ | ||
'title' => 'Easy Digital Downloads', | ||
'option' => 'edd_integration', | ||
'description' => __( 'Easy way to sell Digital Products With WordPress', 'gtm-kit' ), | ||
'path' => 'edd', | ||
'type' => 'core', | ||
], | ||
]; | ||
|
||
return apply_filters( 'gtmkit_integrations_data', $integrations_data ); | ||
} | ||
} |