Skip to content

Instantly share code, notes, and snippets.

@xlplugins
Created June 4, 2025 06:14
Show Gist options
  • Save xlplugins/7fe297a35168e45f613604ad31bd683e to your computer and use it in GitHub Desktop.
Save xlplugins/7fe297a35168e45f613604ad31bd683e to your computer and use it in GitHub Desktop.
Checkout: Movable Klaviyo field
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'] = [
'type' => 'wfacp_html',
'field_type' => 'advanced',
'class' => [ 'kl_newsletter_checkbox' ],
'id' => 'kl_newsletter_checkbox',
'label' => __( 'Klaviyo', 'woocommerce' ),
];
return $field;
}
}
new WFACP_Move_Detect_Extra_Fields();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment