Tags – PHP Autocomplete https://phpautocomplete.com The Ultimate PHP Dropdown Fri, 14 Feb 2014 17:55:50 +0000 en-US hourly 1 https://wordpress.org/?v=7.0.4 set_tags() https://phpautocomplete.com/docs/set_tags/ Fri, 14 Feb 2014 17:55:50 +0000 http://phpautocomplete.com/?p=148 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.
]]>