Created
May 7, 2025 13:03
-
-
Save pramodjodhani/457dbe221af75a8eb93e3216d9dba68e to your computer and use it in GitHub Desktop.
Flux checkout - move company field to billing step.
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
/** | |
* 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