WordPress at a glance
function is not described

MO::import_from_file() public WP 1.0

Fills up with the entries from MO file $filename

{} It's a method of the class: MO{}

No Hooks.

Return

true|false. True if the import from file was successful, otherwise false.

Usage

$MO = new MO();
$MO->import_from_file( $filename );
$filename(string) (required)
MO file to load

Code of MO::import_from_file() WP 5.7

<?php
function import_from_file( $filename ) {
	$reader = new POMO_FileReader( $filename );

	if ( ! $reader->is_resource() ) {
		return false;
	}

	$this->filename = (string) $filename;

	return $this->import_from_reader( $reader );
}