ACF.php
8 years ago
BuddyPress.php
8 years ago
EventsCalendar.php
8 years ago
NinjaForms.php
8 years ago
Pods.php
8 years ago
Types.php
8 years ago
WooCommerce.php
8 years ago
WooCommerce.php
33 lines
| 1 | <?php |
| 2 | |
| 3 | if ( ! defined( 'ABSPATH' ) ) { |
| 4 | exit; |
| 5 | } |
| 6 | |
| 7 | class AC_Addon_WooCommerce extends AC_Addon { |
| 8 | |
| 9 | public function __construct() { |
| 10 | parent::__construct( 'cac-addon-woocommerce' ); |
| 11 | |
| 12 | $this |
| 13 | ->set_title( __( 'WooCommerce', 'codepress-admin-columns' ) ) |
| 14 | ->set_description( __( 'Enhance the products, orders and coupons overviews with new columns and inline editing.', 'codepress-admin-columns' ) ) |
| 15 | ->set_logo( AC()->get_plugin_url() . 'assets/images/addons/woocommerce.png' ) |
| 16 | ->set_icon( $this->get_logo() ) |
| 17 | ->set_link( ac_get_site_utm_url( 'woocommerce-columns', 'addon', 'woocommerce' ) ) |
| 18 | ->add_plugin( 'woocommerce' ); |
| 19 | } |
| 20 | |
| 21 | public function get_placeholder_column() { |
| 22 | $column = new AC_Column_WooCommercePlaceholder(); |
| 23 | $column->set_addon( $this ); |
| 24 | |
| 25 | return $column; |
| 26 | } |
| 27 | |
| 28 | public function is_plugin_active() { |
| 29 | return class_exists( 'WooCommerce', false ); |
| 30 | } |
| 31 | |
| 32 | } |
| 33 |