compatibility.php
22 lines
| 1 | <?php |
| 2 | if ( !defined( 'ABSPATH' ) ) { |
| 3 | exit; // Exit if accessed directly |
| 4 | } |
| 5 | |
| 6 | /* |
| 7 | * Backwards compatibility functions |
| 8 | * |
| 9 | * @created May 13, 2015 |
| 10 | * @package woocommerce-catalog-booster/functions |
| 11 | */ |
| 12 | |
| 13 | add_action( 'admin_notices', 'ic_woocat_notices' ); |
| 14 | |
| 15 | function ic_woocat_notices() { |
| 16 | ?> |
| 17 | <div id="ic_woocat_message" class="error woocommerce-missing"> |
| 18 | <p><?php _e( 'Without WooCommerce installed Catalog Booster has no effect on your site and can be deactivated.', 'catalog-booster-for-woocommerce' ) ?></p> |
| 19 | </div> |
| 20 | <?php |
| 21 | } |
| 22 |