Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

load_plugin_textdomain()

3 tags 1 category

load_plugin_textdomain() — Loads a plugin’s translated strings. If the path is not given then it will be the root of the plugin directory. The .mo file should be named based on the text domain with a dash, and then the locale exactly.

Inputs: $domain (string): Unique identifier for retrieving translated strings $deprecated (string|false): Optional. Deprecated. Use the $plugin_rel_path parameter instead. Default false. $plugin_rel_path (string|false): Optional. Relative path to WP_PLUGIN_DIR where the .mo file resides. Default false.

Returns bool: True when textdomain is successfully loaded, false otherwise.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…