MO::is_entry_good_for_export() WordPress Method

The MO::is_entry_good_for_export() method is used to check if an entry is good for export. This is useful when you want to ensure that only certain data is exported.

MO::is_entry_good_for_export( Translation_Entry $entry ) #


Parameters

$entry

(Translation_Entry)(Required)


Top ↑

Return

(bool)


Top ↑

Source

File: wp-includes/pomo/mo.php

		public function is_entry_good_for_export( $entry ) {
			if ( empty( $entry->translations ) ) {
				return false;
			}

			if ( ! array_filter( $entry->translations ) ) {
				return false;
			}

			return true;
		}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.