Skip to content

Instantly share code, notes, and snippets.

@xlplugins
Last active December 8, 2022 15:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xlplugins/f55dfa1519e6e415852b04f921a57889 to your computer and use it in GitHub Desktop.
Save xlplugins/f55dfa1519e6e415852b04f921a57889 to your computer and use it in GitHub Desktop.
Allow current theme scripts in canvas template #funnelkiy #canvas template scripts
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