woocommerce_support_url

The WooCommerce woocommerce support url hook.

Description

apply_filters( 'woocommerce_support_url', (string) $https_woocommerce_com_my_account_tickets ); 

Parameters (1)

0. $https_woocommerce_com_my_account_tickets (string) => 'https://woocommerce.com/my-account/tickets/'
The https woocommerce com my account tickets.

Usage

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

Defined (1)

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

/includes/class-wc-install.php  
  1. 'support' => '<a href="' . esc_url( apply_filters( 'woocommerce_support_url', 'https://woocommerce.com/my-account/tickets/' ) ) . '" aria-label="' . esc_attr__( 'Visit premium customer support', 'woocommerce' ) . '">' . esc_html__( 'Premium support', 'woocommerce' ) . '</a>',