' . esc_html__( 'AddOnn Attribute Image Gallery requires WooCommerce to be installed and active.', 'addonn-attribute-image-gallery-woocommerce' ) . '

'; } register_activation_hook( __FILE__, 'wcvg_activate' ); /** * Set sensible defaults on activation. */ function wcvg_activate() { if ( false === get_option( 'wcvg_primary_attribute', false ) ) { add_option( 'wcvg_primary_attribute', '' ); } }