Gets a tag by the specified ID.
The getTag()
function returns a Promise that resolves to a tag whose ID matches the specified ID.
function getTag(tagId: string, options: GetTagOptions): Promise<BlogTag>;
Tag ID.
Options specifying which additional fields to return.
import { tags } from "@wix/blog";
async function getTag(tagId, options) {
const response = await tags.getTag(tagId, options);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.