From 1945153549c27b22c641ea95664133125b27f908 Mon Sep 17 00:00:00 2001 From: Swashata Ghosh Date: Mon, 25 Nov 2024 19:44:25 +0530 Subject: [PATCH] [pricing] [filter] Add new filter to enqueue a CSS to the pricing page. --- templates/pricing.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/pricing.php b/templates/pricing.php index f7dc8fe4..af2fe84b 100644 --- a/templates/pricing.php +++ b/templates/pricing.php @@ -69,6 +69,11 @@ wp_enqueue_script( 'freemius-pricing', $pricing_js_url ); + $pricing_css_path = $fs->apply_filters( 'pricing/css_path', null ); + if ( is_string( $pricing_css_path ) ) { + wp_enqueue_style( 'freemius-pricing', fs_asset_url( $pricing_css_path ) ); + } + $has_tabs = $fs->_add_tabs_before_content(); if ( $has_tabs ) {