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_ACF_Custom_Fields { | |
private static $ins = null; | |
private $fields_label = [ | |
'field_663d53424eeb3' => [ | |
'label' => 'How did you hear about us?', | |
'id' => 'how_did_you_hear_about_us_copy', | |
], | |
'field_663d5100cb98f' => [ | |
'label' => 'What is your role?', |
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 Funnekit_Save_log_Subscription_function_runs { | |
public function __construct() { | |
add_action( 'woocommerce_checkout_process', [ $this, 'log_subscription' ] ); | |
add_action( 'woocommerce_checkout_order_processed', array( $this, 'log_subscription' ), 101 ); | |
add_action( 'subscriptions_created_for_order', array( $this, 'log_subscription' ), 101 ); | |
add_action( 'woocommerce_checkout_subscription_created', array( $this, 'log_subscription' ), 101 ); | |
} | |
public function log_subscription( $order = null ) { | |
try { |
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
<?php | |
class Funnelkit_Force_Create_Subscription { | |
public function __construct() { | |
add_action( 'woocommerce_checkout_process', [ $this, 'attach_dependant_hooks' ] ); | |
} | |
/** | |
* Attach order meta update hook during checkout. |
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
/** | |
* Controls tracking JavaScript output for optin pages | |
* | |
* Disables tracking JS by default and only enables it for specific optin page IDs. | |
* Used to selectively enable tracking on certain optin pages while keeping it disabled | |
* for all others. | |
* | |
* @since 2.0.0 | |
* @param bool $bool Whether to allow tracking JS output | |
* @return bool Modified boolean value |
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_use_buit_in_cart_item_data_template','__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
class FKCART_TemplateMela { | |
public function __construct() { | |
add_action( 'fkcart_quick_before_view_content', [ $this, 'remove_action' ] ); | |
} | |
public function is_enable() { | |
return function_exists('bt_variation_swatches_attribute_options'); | |
} |
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_Change_City_State_Postcode_fields { | |
protected $labels = []; | |
protected $id = [9883]; // can multiple with comma saperated xxx,yyy | |
public function __construct() { |
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_form_field_args', function ( $args, $key, $value ) { | |
$args['custom_attributes']['data-profile'] = $value; | |
return $args; | |
}, 20, 3 ); | |
add_action( 'wp_footer', function () { | |
if ( ! is_user_logged_in() ) { | |
return; | |
} |
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_Move_Detect_Extra_Fields { | |
public function __construct() { | |
add_filter( 'wfacp_advanced_fields', [ $this, 'add_fields' ] ); | |
} | |
public function add_fields( $field ) { | |
$field['billing_wc_custom_field'] = [ |
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('fkcart_after_header',function(){ | |
echo do_shortcode('[wlr_cart_earn_message]'); | |
}); |
NewerOlder