Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

How to Load the WP eStore's Language File from Another Folder

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore F.A.Q/Instructions › How to Load the WP eStore's Language File from Another Folder

Tagged: customization, Language, WP eStore

  • This topic has 0 replies, 1 voice, and was last updated 4 years, 9 months ago by admin.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • July 4, 2018 at 1:16 am #14943
    admin
    Keymaster

    If you are customizing the text/messages displayed by the plugin then this tweak maybe helpful.

    You can keep your customized copy of the language file in a different folder (outside the plugins folder). Then use the following code to load it (uses the eStore_language_loading_override filter).

    That way the changes you make to the language file don’t get overridden if the plugin is updated.

    You would add the following code to your theme’s functions.php file or a custom plugin.

    add_filter('eStore_language_loading_override', 'load_my_custom_language');
    function load_my_custom_language()
    {
    $language_file = "/path/to/your/custom/language/file/lang.php";
    include_once($language_file);
    return "custom-file-loaded";
    }

    This ensures that the plugin will always load your custom language file from your custom folder (so the one inside the plugin folder doesn’t matter).

  • Author
    Posts
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • WP PDF Stamper Documentation
  • WP Photo Seller Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial
  • WP Photo Seller Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2023 | Tips and Tricks HQ