Last active
December 8, 2022 15:03
-
-
Save xlplugins/f55dfa1519e6e415852b04f921a57889 to your computer and use it in GitHub Desktop.
Allow current theme scripts in canvas template #funnelkiy #canvas template scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('wffn_allowed_themes', 'wffn_allow_current_theme_scripts' ); //for funnel builder pages ( sale, optin, optin thankyou and wc thankyou ) | |
add_filter('wfocu_allowed_themes', 'wffn_allow_current_theme_scripts' );//for Upsell offer page | |
function wffn_allow_current_theme_scripts( $args ){ | |
//Allow current theme scripts and css in canvas template | |
array_push($args, get_template()); | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment