Title: Incorrect hook for load_plugin_textdomain()
Last modified: February 14, 2025

---

# Incorrect hook for load_plugin_textdomain()

 *  [leemon](https://wordpress.org/support/users/leemon/)
 * (@leemon)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/incorrect-hook-for-load_plugin_textdomain/)
 * Your plugin is throwing the following warning in WP 6.7 (`WP_DEBUG` constant 
   set to `TRUE`):
   `PHP Notice: Function _load_textdomain_just_in_time was called**
   incorrectly**. Translation loading for the yith-woocommerce-gift-cards domain
   was triggered too early. This is usually an indicator for some code in the plugin
   or theme running too early. Translations should be loaded at the init action 
   or later. Please see [Debugging in WordPress](https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/)
   for more information. (This message was added in version 6.7.0.)`The `load_plugin_textdomain()`
   function, currently being called within the `plugins_loaded` action, should instead
   be called within the `init` action.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Juan Coronel](https://wordpress.org/support/users/juaancmendez/)
 * (@juaancmendez)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/incorrect-hook-for-load_plugin_textdomain/#post-18311298)
 * Hello there,
   thanks for contacting us!
 * This issue has been resolved in the latest versions of the plugin, so I recommend
   you update the plugin to the latest version and check if it still appears.
 * Please let us know.
 * Best regards.
 *  Thread Starter [leemon](https://wordpress.org/support/users/leemon/)
 * (@leemon)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/incorrect-hook-for-load_plugin_textdomain/#post-18311491)
 * I’m using the 4.21.0 version of the plugin.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Incorrect hook for load_plugin_textdomain()’ is closed to new replies.

 * ![](https://ps.w.org/yith-woocommerce-gift-cards/assets/icon-256x256.gif?rev=
   3227932)
 * [YITH WooCommerce Gift Cards](https://wordpress.org/plugins/yith-woocommerce-gift-cards/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yith-woocommerce-gift-cards/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yith-woocommerce-gift-cards/)
 * [Active Topics](https://wordpress.org/support/plugin/yith-woocommerce-gift-cards/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yith-woocommerce-gift-cards/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yith-woocommerce-gift-cards/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [leemon](https://wordpress.org/support/users/leemon/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/incorrect-hook-for-load_plugin_textdomain/#post-18311491)
 * Status: not resolved