components/I18n/I18n.php
public function is_translatable_field( $name ) {

		$translatable_fields = $this->get_translatable_fields();

		// All fields that start with "label"
		if ( strpos( $name, 'label' ) === 0 ) {
			return true;
		}
		// All translatable fields
		if ( in_array( $name, $translatable_fields, true ) ) {
			return true;
		}
		// Custom fields data, the name must begin with field_data[
		if ( strpos( $name, 'field_data[' ) === 0 ) {
			$name = str_replace( 'field_data[', '', $name );
			$name = rtrim( $name, ']' );
			$name = explode( '][', $name );
			$name = end( $name );
			// All translatable fields from field_data[ (int) ][ $name ]
			if ( in_array( $name, $translatable_fields, true ) ) {
				return true;
			}
		}

		return false;
	}
public function is_translatable_field( $name ) {

		$translatable_fields = $this->get_translatable_fields();

		// All fields that start with "label"
		if ( strpos( $name, 'label' ) === 0 ) {
			return true;
		}
		// All translatable fields
		if ( in_array( $name, $translatable_fields, true ) ) {
			return true;
		}
		// Custom fields data, the name must begin with field_data[
		if ( strpos( $name, 'field_data[' ) === 0 ) {
			$name = str_replace( 'field_data[', '', $name );
			$name = rtrim( $name, ']' );
			$name = explode( '][', $name );
			$name = end( $name );
			// All translatable fields from field_data[ (int) ][ $name ]
			if ( in_array( $name, $translatable_fields, true ) ) {
				return true;
			}
		}

		return false;
	}
public function is_translatable_field ( $ name ) { $ translatable_fields = $ this -> get_translatable_fields ( ) ; // All fields that start with "label" if ( strpos ( $ name , 'label' ) === 0 ) { return true ; } // All translatable fields if ( in_array ( $ name , $ translatable_fields , true ) ) { return true ; } // Custom fields data, the name must begin with field_data[ if ( strpos ( $ name , 'field_data[' ) === 0 ) { $ name = str_replace ( 'field_data[' , '' , $ name ) ; $ name = rtrim ( $ name , ']' ) ; $ name = explode ( '][' , $ name ) ; $ name = end ( $ name ) ; // All translatable fields from field_data[ (int) ][ $name ] if ( in_array ( $ name , $ translatable_fields , true ) ) { return true ; } } return false ; }
Check is a field name is set for translation

@since 0.1.0

@param string $name

@return bool
Check is a field name is set for translation