activation.php
27 lines
| 1 | <?php |
| 2 | |
| 3 | if ( !defined( 'ABSPATH' ) ) { |
| 4 | exit; // Exit if accessed directly |
| 5 | } |
| 6 | |
| 7 | /** |
| 8 | * Manages activation functions |
| 9 | * |
| 10 | * Created by Norbert Dreszer. |
| 11 | * Date: 19-Feb-15 |
| 12 | * Time: 13:40 |
| 13 | * Package: functions/ |
| 14 | */ |
| 15 | function ic_woocat_activation() { |
| 16 | if ( function_exists( 'impleCode_EPC' ) ) { |
| 17 | $ic_woocat = ic_woocat_settings(); |
| 18 | $ic_woocat[ 'catalog' ][ 'enable' ] = 1; |
| 19 | update_option( 'ic_woocat', $ic_woocat ); |
| 20 | } |
| 21 | if ( function_exists( 'implecode_wp_tooltip_add' ) ) { |
| 22 | implecode_wp_tooltip_add( __( 'New menu element', 'catalog-booster-for-woocommerce' ), __( 'A new Catalog Booster settings link has been added. Click here to see it.', 'catalog-booster-for-woocommerce' ), 'toplevel_page_woocommerce' ); |
| 23 | implecode_wp_tooltip_add( __( 'Catalog Booster Settings', 'catalog-booster-for-woocommerce' ), __( 'Click here to modify WooCommerce.', 'catalog-booster-for-woocommerce' ), 'toplevel_page_woocommerce .wp-submenu li:last' ); |
| 24 | } |
| 25 | delete_option( 'IC_WOOCAT_activation_message_done' ); |
| 26 | } |
| 27 |