Skip to content

Instantly share code, notes, and snippets.

View keshav1990's full-sized avatar
🏠
Open For Remote Jobs

Keshav Kalra keshav1990

🏠
Open For Remote Jobs
View GitHub Profile
@keshav1990
keshav1990 / SmartButtons at step 2
Created August 17, 2023 06:52 — forked from xlplugins/SmartButtons at step 2
Funnelkit checkout SmartButtons at positions
add_filter( 'wfacp_smart_buttons_positions', function ( $settings ) {
$settings[] = [ 'id' => 'woocommerce_review_order_after_payment', 'name' => 'bottom of gateway lists' ];
return $settings;
} );
add_filter('fkwcs_express_button_checkout_position',function (){
return 'woocommerce_review_order_after_payment';
},30);
/**
this snippet Work only if funnel builder 2.13 or Greater and AeroCheckout 3.8.1 or Greater
*/
class FunnelKitMoveSectionBelowGateway {
private $contained_section_fields = [ 7 => ''];
public function __construct() {
add_action( 'wfacp_internal_css', [ $this, 'css' ] );