GlotCore Limit Import Strings Number extends GlotPress by adding the ability to define a maximum number of strings that can be imported from a translation file.
It gives you better control over project size and helps protect your server from performance issues caused by very large imports.
Why Use This Plugin?
Large translation files can:
- Slow down your server during import
- Consume excessive memory
- Affect overall GlotPress performance
- Overload shared or limited hosting environments
By setting a clear limit on the number of importable strings, you ensure stability and predictable resource usage.
Use Cases
This plugin is especially useful when:
- You want to protect your GlotPress instance from heavy imports
- You run GlotPress on shared hosting
- You offer translation services with usage tiers (e.g., free plan with limited strings)
- You want to allow small personal projects but restrict large-scale imports
How It Works
After installation, the plugin automatically limits imports to 1000 strings by default.
You can easily change the limit by adding the following constant to your wp-config.php file:
define( 'GLOTCORE_IMPORT_STRINGS_LIMIT', 500 );
Replace 500 with any number that fits your needs.
Key Features
- Simple and lightweight
- Configurable via
wp-config.php - Helps maintain performance and stability
- Ideal for free-tier or limited plans
Repository: https://github.com/meloniq/gp-limit-import-strings-number



