Title: Action hook and multilanguage
Last modified: March 5, 2018

---

# Action hook and multilanguage

 *  Resolved [lestra](https://wordpress.org/support/users/lestra/)
 * (@lestra)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/action-hook-and-multilanguage/)
 * Hi. I use this code to display Contact Form 7 on product single pages:
 * add_action( ‘woocommerce_single_product_summary’, ‘custom_action_after_single_product_title’,
   40 );
    function custom_action_after_single_product_title() { global $product;
   echo do_shortcode( ‘[contact-form-7 id=”6703″]’ ); }
 * It works nicely but site is in two languages and I dont know how to hook translated
   form for second language. Can you help me please?

Viewing 1 replies (of 1 total)

 *  Thread Starter [lestra](https://wordpress.org/support/users/lestra/)
 * (@lestra)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/action-hook-and-multilanguage/#post-10040642)
 * This helped me:
 * <?php if(ICL_LANGUAGE_CODE==’en’): ?>
    —do something— <?php elseif(ICL_LANGUAGE_CODE
   ==’it’): ?> —do something else– <?php endif; ?>

Viewing 1 replies (of 1 total)

The topic ‘Action hook and multilanguage’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [lestra](https://wordpress.org/support/users/lestra/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/action-hook-and-multilanguage/#post-10040642)
 * Status: resolved