Is there any way to add tags to a K2 article using PHP? Maybe there is a K2 tag observer class that I can use to add the tags like the code below.

$tagsObserver = $Table->getObserverOfClass('JTableObserverTags');

$tagsObserver->onBeforeStore(true, true);

$tagsObserver->setNewTags($data["tags"], true);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.