wphooks.info - load_textdomain_mofile

load_textdomain_mofile

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/l10n.php:
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
	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;
	}