protected function setup_metadata() {
		if ( ! $this->meta_type ) {
			return;
		}

		$metadata = $this->get_metadata();
		foreach ( $this->get_mapping() as $attribute => $meta ) {
			if ( isset( $metadata[ $meta ] ) ) {
				$this->set_attribute( $attribute, $metadata[ $meta ] );
			}
		}
	}
protected function setup_metadata() {
		if ( ! $this->meta_type ) {
			return;
		}

		$metadata = $this->get_metadata();
		foreach ( $this->get_mapping() as $attribute => $meta ) {
			if ( isset( $metadata[ $meta ] ) ) {
				$this->set_attribute( $attribute, $metadata[ $meta ] );
			}
		}
	}
protected function setup_metadata ( ) { if ( ! $ this -> meta_type ) { return ; } $ metadata = $ this -> get_metadata ( ) ; foreach ( $ this -> get_mapping ( ) as $ attribute => $ meta ) { if ( isset ( $ metadata [ $ meta ] ) ) { $ this -> set_attribute ( $ attribute , $ metadata [ $ meta ] ) ; } } }
Mapped metadata with the attributes.

@return void
Mapped metadata with the attributes .