woocommerce_product_additional_information

Additional Information tab.

Description

add_action( 'woocommerce_product_additional_information', (string) $wc_display_product_attributes, (int) $int ); 

Parameters (2)

0. $wc_display_product_attributes (string) => 'wc_display_product_attributes'
The wc display product attributes.
1. $int (int) => 10
The int.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'woocommerce_product_additional_information', $wc_display_product_attributes, $int ); 
The following example is for adding a hook callback.
  1. // define the woocommerce_product_additional_information callback 
  2. function action_woocommerce_product_additional_information( $wc_display_product_attributes, $int ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'woocommerce_product_additional_information', 'action_woocommerce_product_additional_information', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'woocommerce_product_additional_information', 'action_woocommerce_product_additional_information', 10, 2 ); 

Defined (2)

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

/includes/wc-template-hooks.php  
  1. add_action( 'woocommerce_product_additional_information', 'wc_display_product_attributes', 10 ); 
/templates/single-product/tabs/additional-information.php  
  1. <?php do_action( 'woocommerce_product_additional_information', $product ); ?>