Merge pull request #2855 from splashingpixels/master
Add filter hook to the place order button for easy 3rd party manipulation
This commit is contained in:
commit
6e5ee85450
|
@ -188,7 +188,11 @@ $available_methods = $woocommerce->shipping->get_available_shipping_methods();
|
|||
|
||||
<?php do_action( 'woocommerce_review_order_before_submit' ); ?>
|
||||
|
||||
<input type="submit" class="button alt" name="woocommerce_checkout_place_order" id="place_order" value="<?php echo apply_filters('woocommerce_order_button_text', __( 'Place order', 'woocommerce' )); ?>" />
|
||||
<?php
|
||||
$order_button_text = apply_filters('woocommerce_order_button_text', __( 'Place order', 'woocommerce' ));
|
||||
|
||||
echo apply_filters('woocommerce_order_button_html', '<input type="submit" class="button alt" name="woocommerce_checkout_place_order" id="place_order" value="' . $order_button_text . '" />' );
|
||||
?>
|
||||
|
||||
<?php if (woocommerce_get_page_id('terms')>0) : ?>
|
||||
<p class="form-row terms">
|
||||
|
|
Loading…
Reference in New Issue