This file contains hidden or 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( 'fkcart_select_options_label', function ( $text, $cart_item ) { | |
if ( ! ( isset( $cart_item['cart_item']['bos4w_data'] ) && ! empty( $cart_item['cart_item']['bos4w_data']['selected_subscription'] ) ) ) { | |
$text = ''; | |
} | |
return $text; | |
} ,11,2); |
This file contains hidden or 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_action( 'wfacp_internal_css', function () { | |
if(!class_exists('\Hfd\Woocommerce\Container')){ | |
return; | |
} | |
$helper = \Hfd\Woocommerce\Container::get('Hfd\Woocommerce\Helper\Spot'); | |
?> | |
<script> | |
window.addEventListener('load', function () { | |
(function ($) { |
This file contains hidden or 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
/** | |
* Dequeues the `wpforms-smart-phone-field` script on optin pages. | |
* | |
* This function hooks into the `wp_enqueue_scripts` action and checks if the current page | |
* is an optin page using the `WFFN_Optin_Pages` class. If the page is an optin page, it | |
* removes the `wpforms-smart-phone-field` script from the queue. | |
* | |
* @hook wp_enqueue_scripts | |
* @priority 20 | |
*/ |
This file contains hidden or 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
class WFOB_Compatibility_Re_run_update_review { | |
private $process = false; | |
public function __construct() { | |
add_action( 'wp_footer', [ $this, 'js' ] ); | |
add_action( 'woocommerce_checkout_update_order_review', [ $this, 'get_data' ], 5 ); | |
add_filter( 'woocommerce_update_order_review_fragments', [ $this, 'unset_fragments' ], 900 ); | |
} |
This file contains hidden or 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
class WFACP_EnableCustomizerCss { | |
public function __construct() { | |
add_action( 'wfacp_after_checkout_page_found', [ $this, 'run_hook' ] ); | |
} | |
public function run_hook() { | |
add_filter( 'wfacp_enable_customizer_css', '__return_false' ); | |
} | |
} |
This file contains hidden or 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( 'fkcart_disabled_post_types', function ( $post_types ) { | |
$post_types=array_filter( $post_types, function ( $i ) { | |
return $i != 'wffn_optin'; | |
} ); | |
return $post_types; | |
} ); |
This file contains hidden or 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('fkcart_re_run_get_slide_cart_ajax','__return_false',99); | |
add_action( 'wp_footer', function () { | |
?> | |
<style> | |
.fkcart-drawer-container { | |
transform: translate(0px) !important; | |
} | |
</style> | |
<script> |
This file contains hidden or 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_action( 'wp_footer', function () { | |
?> | |
<script> | |
(function () { | |
$ = jQuery; | |
$(document.body).on('fkcart_cart_closed', function (params) { | |
console.log('update') | |
$('#fkcart-modal').slideUp() | |
}); |
This file contains hidden or 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_action('fk_optin_admin_notification_subject', function() { | |
return 'You got a new email from funnel builder optin'; | |
},99); |
This file contains hidden or 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( 'woocommerce_payment_complete_order_status', 'wc_auto_complete_paid_order', 10, 3 ); | |
function wc_auto_complete_paid_order( $status, $order_id, $order ) { | |
return 'completed'; | |
} |
NewerOlder