<?php

if ( ! function_exists( 'calla_elated_add_product_list_carousel_shortcode' ) ) {
	function calla_elated_add_product_list_carousel_shortcode( $shortcodes_class_name ) {
		$shortcodes = array(
			'CallaCore\CPT\Shortcodes\ProductListCarousel\ProductListCarousel',
		);
		
		$shortcodes_class_name = array_merge( $shortcodes_class_name, $shortcodes );
		
		return $shortcodes_class_name;
	}
	
	if ( calla_elated_core_plugin_installed() ) {
		add_filter( 'calla_core_filter_add_vc_shortcode', 'calla_elated_add_product_list_carousel_shortcode' );
	}
}

if ( ! function_exists( 'calla_elated_add_product_list_carousel_into_shortcodes_list' ) ) {
	function calla_elated_add_product_list_carousel_into_shortcodes_list( $woocommerce_shortcodes ) {
		$woocommerce_shortcodes[] = 'eltdf_product_list_carousel';
		
		return $woocommerce_shortcodes;
	}
	
	add_filter( 'calla_elated_woocommerce_shortcodes_list', 'calla_elated_add_product_list_carousel_into_shortcodes_list' );
}