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