''], is_array($atts) ? $atts : [], 'aumframe_cart_link'); $html = Ask::html('aumframe_cart_link', ['label' => (string) $a['label']]); if (trim($html) !== '') { return $html; } if (!function_exists('wc_get_cart_url')) { return ''; // Without WooCommerce there is no cart. } $label = (string) $a['label']; if ($label === '') { $label = __('Cart', 'aumframe'); } return sprintf( '%s', esc_url(wc_get_cart_url()), esc_html($label) ); } public static function product_action($atts = []): string { $a = shortcode_atts(['buttons' => ''], is_array($atts) ? $atts : [], 'aumframe_product_action'); return Ask::html('aumframe_product_action', ['buttons' => (string) $a['buttons']]); } }