( meta_key => meta_value ). * * @param string $entity_type Entity type key. * @param list $entity_ids Entity ids. * @return array> * * @since 0.1.0 */ public function get_for_entities( string $entity_type, array $entity_ids ): array; /** * Single-entity convenience that still uses the batched query path. * * @param string $entity_type Entity type key. * @param int $entity_id Entity id. * @return array * * @since 0.1.0 */ public function get_for_entity( string $entity_type, int $entity_id ): array; /** * Upsert a meta value. Intended for add-ons only. * * @param string $entity_type Entity type. * @param int $entity_id Entity id. * @param string $meta_key Key. * @param string|null $meta_value Value. * * @since 0.1.0 */ public function put( string $entity_type, int $entity_id, string $meta_key, ?string $meta_value ): void; /** * Delete one meta key. Intended for add-ons only. * * @param string $entity_type Entity type. * @param int $entity_id Entity id. * @param string $meta_key Key. * * @since 0.1.0 */ public function delete( string $entity_type, int $entity_id, string $meta_key ): void; /** * Delete all meta for an entity. Intended for add-ons / cascade cleanup. * * @param string $entity_type Entity type. * @param int $entity_id Entity id. * * @since 0.1.0 */ public function delete_for_entity( string $entity_type, int $entity_id ): void; }