wcml_is_attributes_page

The WooCommerce Multilingual wcml is attributes page hook.

Description

apply_filters( 'wcml_is_attributes_page', (unknown) $self ); 

Parameters (1)

0. $self — Optional. (unknown) => self::$page == 'product_attributes' && isset( $_GET[ 'post_type' ] ) && $_GET[ 'post_type' ] == 'product'
The self.

Usage

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

Defined (3)

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

/inc/class-wcml-resources.php  
  1. $is_attr_page = apply_filters( 'wcml_is_attributes_page', self::$page == 'product_attributes' && isset( $_GET[ 'post_type' ] ) && $_GET[ 'post_type' ] == 'product' ); 
/inc/class-wcml-attributes.php  
  1. $is_attr_page = apply_filters( 'wcml_is_attributes_page', isset( $_GET[ 'page' ] ) && $_GET[ 'page' ] == 'product_attributes' && isset( $_GET[ 'post_type' ] ) && $_GET[ 'post_type' ] == 'product' ); 
/inc/admin-menus/class-wcml-admin-menus.php  
  1. $is_attributes_page = apply_filters( 'wcml_is_attributes_page', $get_page == 'product_attributes' );