wcml_endpoint_permalink_filter

The WooCommerce Multilingual wcml endpoint permalink filter hook.

Description

apply_filters( 'wcml_endpoint_permalink_filter', (unknown) $endpoint, (unknown) $key ); 

Parameters (2)

0. $endpoint (unknown)
The endpoint.
1. $key (unknown)
The key.

Usage

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

Defined (1)

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

/inc/class-wcml-endpoints.php  
  1. $endpoint = apply_filters( 'wcml_endpoint_permalink_filter', $endpoint, $key );