<?php
if ( ! defined( 'ABSPATH' ) ) {
	// Exit if accessed directly.
	exit;
}

if ( ! function_exists( 'qode_badges_for_woocommerce_badge_textual_type' ) ) {
	function qode_badges_for_woocommerce_badge_textual_type( $options ) {
		$options['textual'] = esc_html__( 'Textual', 'qode-badges-for-woocommerce' );

		return $options;
	}

	add_filter( 'qode_badges_for_woocommerce_filter_badge_types', 'qode_badges_for_woocommerce_badge_textual_type', 1 );
}

if ( ! function_exists( 'qode_badges_for_woocommerce_set_textual_default_badge_type' ) ) {
	function qode_badges_for_woocommerce_set_textual_default_badge_type() {
		return 'textual';
	}

	add_filter( 'qode_badges_for_woocommerce_filter_default_badge_type', 'qode_badges_for_woocommerce_set_textual_default_badge_type' );
}

if ( ! function_exists( 'qode_badges_for_woocommerce_badge_textual_add_dependency_options' ) ) {
	function qode_badges_for_woocommerce_badge_textual_add_dependency_options( $types ) {
		$types[] = 'textual';

		return $types;
	}

	add_filter( 'qode_badge_for_woocommmerce_filter_text_options_type', 'qode_badges_for_woocommerce_badge_textual_add_dependency_options' );
	add_filter( 'qode_badges_for_woocommerce_filter_colors_badge_types', 'qode_badges_for_woocommerce_badge_textual_add_dependency_options' );
	add_filter( 'qode_badges_for_woocommerce_filter_border_badge_types', 'qode_badges_for_woocommerce_badge_textual_add_dependency_options' );
}
