1. Home
  2. Knowledge Base
  3. Codex
  4. JS API
  5. JS Filters
  6. applyFilters( “storage_method” )

applyFilters( “storage_method” )

applyFilters( "storage_method", method, key );

Filter the storage method for local-data.

Params

method string, required
The storage method to use to store the specified variable. Supported methods are auto, local, cookie and none.
key string, required
The field-key (variable name) that is stored or read from the storage.

Returns

One of the following string values:

  • auto .. Use localStorage, if available. Otherwise, fall back to cookies.
  • local .. Use localStorage.
  • cookie .. Use Cookies.
  • none .. Do not store the value.

Notes

No notes

Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Get in touch with us