Menu Adam R Brown

WP hooks navigation: Home/browse • Actions index • Filters index

Source View: lang_dir_for_domain

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
96           /**
97            * Filters the determined languages directory path for a specific domain and locale.
98            *
99            * @since 6.6.0
100            *
101            * @param string|false $path   Languages directory path for the given domain and locale.
102            * @param string       $domain Text domain.
103            * @param string       $locale Locale.
104            */
105           return apply_filters( 'lang_dir_for_domain', $path, $domain, $locale );
106      }
107
108      /**
109       * Determines whether any MO file paths are available for the domain.
110       *
111       * This is the case if a path has been set for the current locale,
112       * or if there is no information stored yet, in which case
113       * {@see _load_textdomain_just_in_time()} will fetch the information first.
114       *