Last active
December 6, 2022 14:40
-
-
Save xlplugins/3a28951c206950317849ada36a39b5e6 to your computer and use it in GitHub Desktop.
Allow current theme scripts for particular step #Upstroke #woofunnels #theme css
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' );// only for Upsell offer page | |
function wffn_allow_current_theme_scripts( $args ){ | |
//Allow current theme scripts and css for particular step in canvas template | |
//'wfacp_checkout' for checkout | |
//'wfocu_offer' for upsell | |
//'wffn_landing' for landing | |
//'wffn_ty' for wc thankyou | |
//'wffn_optin' for optin | |
//'wffn_oty' for optin thankyou | |
global $post; | |
if ( ( ! empty( $post ) && $post->post_type === 'wffn_ty' ) ) { // change here particular post type | |
array_push($args, get_template()); | |
return $args; | |
} | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment