wp-textdomain

JSON →
library 1.0.1 ·javascript
verified May 1, 2026

A linting and fixing tool for WordPress plugin and theme textdomains in PHP files. Version 1.0.1 is latest. It scans PHP files using glob patterns and validates/replaces textdomain arguments in gettext functions like __, _e, _x, etc. Supports multiple domains in an array, automatic fixes (fix option), and custom keyword definitions. Key differentiators: specifically designed for WordPress, unlike general PHP linters; can fix missing or incorrect textdomains; configurable via options like engine (php-parser), variableDomain, and missingDomain.

total hits 14
actors 4 distinct systems
last hit 5d ago AhrefsBot
GPTBot
5
MetaBot
3
Script
1
Humans
2

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇮🇳 India · 🇮🇹 Italy