packages/kirki-framework/core/src/L10n.php
public function override_load_textdomain( $override, $domain, $mofile ) {
		global $l10n;
		if ( isset( $l10n[ $this->get_theme_textdomain() ] ) ) {
			$l10n['kirki'] = $l10n[ $this->get_theme_textdomain() ]; // phpcs:ignore WordPress.WP.GlobalVariablesOverride
		}

		// Check if the domain is "kirki".
		if ( 'kirki' === $domain ) {
			return true;
		}
		return $override;
	}
public function override_load_textdomain( $override, $domain, $mofile ) {
		global $l10n;
		if ( isset( $l10n[ $this->get_theme_textdomain() ] ) ) {
			$l10n['kirki'] = $l10n[ $this->get_theme_textdomain() ]; // phpcs:ignore WordPress.WP.GlobalVariablesOverride
		}

		// Check if the domain is "kirki".
		if ( 'kirki' === $domain ) {
			return true;
		}
		return $override;
	}
public function override_load_textdomain ( $ override , $ domain , $ mofile ) { global $ l10n ; if ( isset ( $ l10n [ $ this -> get_theme_textdomain ( ) ] ) ) { $ l10n [ 'kirki' ] = $ l10n [ $ this -> get_theme_textdomain ( ) ] ; // phpcs:ignore WordPress.WP.GlobalVariablesOverride } // Check if the domain is "kirki". if ( 'kirki' === $ domain ) { return true ; } return $ override ; }
Allows overriding the "kirki" textdomain from a theme.

@since 3.0.12
@access public
@param bool   $override Whether to override the .mo file loading. Default false.
@param string $domain   Text domain. Unique identifier for retrieving translated strings.
@param string $mofile   Path to the MO file.
@return bool
Allows overriding the kirki textdomain from a theme .