set_tags()

Select from existing tags or create a new tag. Tags are the simplest form of data where the id is also the text. Take an array representing a list of tags. User can select from existing tags or create a new tag by picking the first choice which is what the user has typed into the search box.

Note that when tagging is enabled the user can select from pre-existing tags or create a new tag by picking the first choice which is what the user has typed into the search box so far.

Signature:

public function set_tags(array $tags, array $tokenSeparators)

Parameters:

  • $tags: Array
  • $tokenSeparators: An array of strings that define token separators.

No related content found.

Tags: