angelleye_review_order_cance_button_html

The PayPal for WooCommerce angelleye review order cance button html hook.

Description

Parameters (1)

0. $a_class_button_alt_angelleye_cancel_name_woocommerce_checkout_place_order_href_esc_attr_cancel_order_url_order_button_text_a — Optional. (string) => '' .$order_button_text. ''
The class button alt angelleye cancel name woocommerce checkout place order href esc attr cancel order url order button text a.

Usage

To run the hook, copy the example below.
  1. $a_class_button_alt_angelleye_cancel_name_woocommerce_checkout_place_order_href_esc_attr_cancel_order_url_order_button_text_a = apply_filters( 'angelleye_review_order_cance_button_html', $a_class_button_alt_angelleye_cancel_name_woocommerce_checkout_place_order_href_esc_attr_cancel_order_url_order_button_text_a ); 
  2.  
  3. if ( !empty( $a_class_button_alt_angelleye_cancel_name_woocommerce_checkout_place_order_href_esc_attr_cancel_order_url_order_button_text_a ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the angelleye_review_order_cance_button_html callback 
  2. function filter_angelleye_review_order_cance_button_html( $a_class_button_alt_angelleye_cancel_name_woocommerce_checkout_place_order_href_esc_attr_cancel_order_url_order_button_text_a ) { 
  3. // make filter magic happen here... 
  4. return $a_class_button_alt_angelleye_cancel_name_woocommerce_checkout_place_order_href_esc_attr_cancel_order_url_order_button_text_a
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'angelleye_review_order_cance_button_html', 'filter_angelleye_review_order_cance_button_html', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'angelleye_review_order_cance_button_html', 'filter_angelleye_review_order_cance_button_html', 10, 1 ); 

Defined (1)

The filter is defined in the following location(s).

/angelleye-includes/express-checkout/class-wc-gateway-paypal-express-helper-angelleye.php  
  1. $order_button_hrml .= apply_filters( 'angelleye_review_order_cance_button_html', '<a class="button alt angelleye_cancel" name="woocommerce_checkout_place_order" href="' . esc_attr( $cancel_order_url ) . '" >' .$order_button_text. '</a>' );