availability:

WooCommerce Multilingual Version: 3.8

description:

Add filters to check if the current product page is an attribute page. This is useful for WooCommerce extensions that have their own attribute pages.

type:
filter
category:
Miscellaneous
parameters:
add_filter( 'wcml_is_attributes_page', 'the_callback_function' );

There is one parameter passed to this filter:

$is_attribute_page
(bool) Whether or not the current page is an attribute page.
hook example usage:

Example

/**
 * This example is extracted from the Adventure Tours Theme compatibility class in the WCML code. 
 */
add_filter( 'wcml_is_attributes_page', 'is_attributes_page' );

function is_attributes_page( $is_attribute_page ){

    if( isset( $_GET[ 'page' ] ) && $_GET[ 'page' ] == 'product_attributes_extended' && isset( $_GET[ 'post_type' ] ) && $_GET[ 'post_type' ] == 'product' ){
        $is_attributes_page = true;
    }

    return $is_attributes_page;
}