Title: lang_dir_for_domain
Published: July 16, 2024
Last modified: May 20, 2026

---

# apply_filters( ‘lang_dir_for_domain’, string|false $path, string $domain, string $locale )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/lang_dir_for_domain/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/lang_dir_for_domain/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/lang_dir_for_domain/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/lang_dir_for_domain/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/lang_dir_for_domain/?output_format=md#wp--skip-link--target)

Filters the determined languages directory path for a specific domain and locale.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/lang_dir_for_domain/?output_format=md#parameters)󠁿

 `$path`string|false

Languages directory path for the given domain and locale.

`$domain`string

Text domain.

`$locale`string

Locale.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/lang_dir_for_domain/?output_format=md#source)󠁿

    ```php
    return apply_filters( 'lang_dir_for_domain', $path, $domain, $locale );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-textdomain-registry.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/class-wp-textdomain-registry.php#L105)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/class-wp-textdomain-registry.php#L105-L105)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/lang_dir_for_domain/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_Textdomain_Registry::get()](https://developer.wordpress.org/reference/classes/wp_textdomain_registry/get/)`wp-includes/class-wp-textdomain-registry.php` |

Returns the languages directory path for a specific domain and locale.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/lang_dir_for_domain/?output_format=md#changelog)󠁿

| Version | Description | 
| [6.6.0](https://developer.wordpress.org/reference/since/6.6.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Flang_dir_for_domain%2F)
before being able to contribute a note or feedback.