From e1a5efcc2798cad687db8d6f0a08df10667ef7aa Mon Sep 17 00:00:00 2001 From: nitya Date: Wed, 6 Mar 2024 11:33:54 -0800 Subject: [PATCH] fallback --- inc/helper-functions.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/inc/helper-functions.php b/inc/helper-functions.php index d19e3ed..52741a5 100644 --- a/inc/helper-functions.php +++ b/inc/helper-functions.php @@ -354,8 +354,13 @@ function slp_append_superscript( $content, $superscript_text ) { function get_company_name_shortcode($atts) { + $fallback = shortcode_atts( array( + 'fallback' => 'eee', + ), $atts ); + + // Default message - $message = "For all fans, ..."; + $message = esc_attr($fallback['fallback']); if(isset($_GET['landing_page'])) { $page_slug = sanitize_text_field($_GET['landing_page']);