Skip to content

Instantly share code, notes, and snippets.

@pramodjodhani
Created May 7, 2025 13:03
Show Gist options
  • Save pramodjodhani/457dbe221af75a8eb93e3216d9dba68e to your computer and use it in GitHub Desktop.
Save pramodjodhani/457dbe221af75a8eb93e3216d9dba68e to your computer and use it in GitHub Desktop.
Flux checkout - move company field to billing step.
/**
* Flux checkout - move company field to billing step.
*/
add_filter( 'flux_checkout_details_fields', function( $fields ) {
foreach ( $fields as $key => $field ) {
if ( $field === 'billing_company' ) {
unset( $fields[ $key ] );
}
}
return $fields;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment