MO::import_from_file()
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() MO::import from file code WP 6.7.2
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 ); }