load_child_theme_textdomain

Advertisement

Summery Summery

Load the child themes translated strings.

Syntax Syntax

load_child_theme_textdomain( string $domain, string $path = false )

Description Description

If the current locale exists as a .mo file in the child themes root directory, it will be included in the translated strings by the $domain.

The .mo files must be named based on the locale exactly.

Parameters Parameters

$domain

(string) (Required) Text domain. Unique identifier for retrieving translated strings.

$path

(string) (Optional) Path to the directory containing the .mo file.

Default value: false

Return Return

(bool) True when the theme textdomain is successfully loaded, false otherwise.

Source Source

File: wp-includes/l10n.php

function load_muplugin_textdomain( $domain, $mu_plugin_rel_path = '' ) {
	/** This filter is documented in wp-includes/l10n.php */
	$locale = apply_filters( 'plugin_locale', determine_locale(), $domain );

	$mofile = $domain . '-' . $locale . '.mo';

Advertisement

Changelog Changelog

Changelog
Version Description
2.9.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.