settings = $settings; } /** * @param string $type * * @return bool */ public function is_sync( $type ) { return isset( $this->settings[ $type ] ) && ( $this->settings[ $type ] == WPML_CONTENT_TYPE_TRANSLATE || $this->settings[ $type ] == WPML_CONTENT_TYPE_DISPLAY_AS_IF_TRANSLATED ); } }