Remove the given tag from this file’s tags (if present)
Available since version 3.0.17.
Example
$file = $page->files->first();
$file->removeTag('foo'); // remove single tag
$file->removeTag('foo,bar,baz'); // remove multiple tags
$file->removeTag(['foo', 'bar', 'baz']); // same as above, using array
Usage
$pagefile->removeTag(string $tag);
Arguments
Name | Type(s) | Description |
---|---|---|
tag | string | Tag to remove, or array of tags to remove, or CSV string of tags to remove. |
Return value
$this
Object instance it was called from (method supports fluent interface).
See Also
Pagefile methods and properties
API reference based on ProcessWire core version 3.0.236