Removes render and form functions from class-tainacan-compound, we don't use these anymore.

This commit is contained in:
Mateus Machado Luna 2020-03-04 09:54:18 -03:00
parent a3e67b6276
commit 963d48fd9f
1 changed files with 0 additions and 16 deletions

View File

@ -129,22 +129,6 @@ class Compound extends Metadata_Type {
}
return $options;
}
public function render( $itemMetadata ) {
return '<tainacan-text
id="tainacan-text-' . $itemMetadata->get_item()->WP_Post->post_name . '"
field_id ="'.$itemMetadata->get_metadatum()->get_id().'"
item_id="'.$itemMetadata->get_item()->get_id().'"
value=\''.json_encode( $itemMetadata->get_value() ).'\'
name="'.$itemMetadata->get_metadatum()->get_name().'"></tainacan-text>';
}
/**
* generate the metadata for this metadatum type
*/
public function form() {
}
/**