/*
Theme Name: Sword Kings
Theme URI: https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
Template: hello-elementor
Author: GMT Solutions Limited
Author URI: https://gmt-solutions.co.uk
Description: A plain-vanilla &amp; lightweight theme for Elementor page builder
Tags: accessibility-ready,flexible-header,custom-colors,custom-menu,custom-logo,featured-images,rtl-language-support,threaded-comments,translation-ready
Version: 2.6.1.1664199652
Updated: 2022-09-26 13:40:52

*/


.elementor-169 .elementor-element.elementor-element-67c36b61 #payment #place_order {
    font-family: "roboto", Sans-serif;
    font-size: 16px;
    font-weight: 600;
    background-color: #a70202;
}
.elementor-kit-5 {
  --e-global-color-primary: #000000;
  --e-global-color-secondary: #B80000
  ;
  --e-global-color-text: #000000;
  --e-global-color-accent: #FF0606;
  --e-global-color-6e1561e: #FFD700;
  --e-global-color-d67ef39: #02D502;
  --e-global-color-5d88105: #A80404;
  --e-global-color-b809e24: #FFFFFF;
  --e-global-typography-primary-font-family: "Roboto";
  --e-global-typography-primary-font-size: 18px;
  --e-global-typography-primary-font-weight: 600;
  --e-global-typography-secondary-font-family: "Roboto Slab";
  --e-global-typography-secondary-font-weight: 400;
  --e-global-typography-text-font-family: "Roboto";
  --e-global-typography-text-font-size: 16px;
  --e-global-typography-text-font-weight: 400;
  --e-global-typography-accent-font-family: "Roboto";
  --e-global-typography-accent-font-size: 16px;
  --e-global-typography-accent-font-weight: 500;
  color: var( --e-global-color-primary );
  font-family: "Fjalla One", Sans-serif;
  font-size: 16px;
  --e-preloader-animation-duration: 1500ms;
  --e-preloader-delay: 0ms;
  --e-preloader-color: #FFF;
  --e-preloader-size: 20px;
}

/**
* product image delete
* —————————————————————————–
*/
add_action(‘after_delete_post’,’wdm_delete_post_images’,10,1);

function wdm_delete_post_images($post_id)
{
$featured_image_id = get_post_meta($post_id,’_thumbnail_id’,true);

$image_galleries_id = get_post_meta($post_id,’_product_image_gallery’,true);

if(!empty($featured_image_id))
{
wp_delete_post($featured_image_id);
}

if(!empty($image_galleries_id))
{
$image_galleries_array = split(‘,’,$image_galleries_id);

foreach($image_galleries_array as $single_image_id)
{
wp_delete_post($single_image_id);
}
	
