MO::import_from_file()publicWP 1.0

Fills up with the entries from MO file $filename

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

MO::import_from_file() code WP 6.1.1

public 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 );
}