wphooks.info - load_textdomain_mofile

load_textdomain_mofile

(trunk - 5.0-alpha-42732)

The hook occurs in the following file:

wp-includes/l10n.php:
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
	do_action( 'load_textdomain', $domain, $mofile );

	/**
	 * Filters MO file path for loading translations for a specific text domain.
	 *
	 * @since 2.9.0
	 *
	 * @param string $mofile Path to the MO file.
	 * @param string $domain Text domain. Unique identifier for retrieving translated strings.
	 */
	$mofile = apply_filters( 'load_textdomain_mofile', $mofile, $domain );

	if ( ! is_readable( $mofile ) ) {
		return false;
	}

	$mo = new MO();
	if ( ! $mo->import_from_file( $mofile ) ) {
		return false;
	}