Last active
October 30, 2024 16:25
-
-
Save pramodjodhani/093b6cbb2e30151f6f1c7dd5969ea9e3 to your computer and use it in GitHub Desktop.
Flux checkout - Move the express checkout button so that it is displayed on all the steps.
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 | |
| /** | |
| * Flux checkout - Move the express checkout button so that it is displayed on all the steps. | |
| * | |
| * @return void | |
| */ | |
| function iconic_flux_move_express_checkout_button() { | |
| remove_action( 'woocommerce_checkout_before_customer_details', array( 'Iconic_Flux_Core', 'express_checkout_button_wrap' ) ); | |
| add_action( 'flux_after_header', array( 'Iconic_Flux_Core', 'express_checkout_button_wrap' ) ); | |
| } | |
| add_action( 'init', 'iconic_flux_move_express_checkout_button' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment