DiviAreaItem.theKey()

  1. Home
  2. Knowledge Base
  3. Codex
  4. JS API
  5. JS Functions
  6. DiviAreaItem.theKey()
DiviAreaItem.theKey()

Returns the Areas hook-key which is used for action/filter names.

The hook-key contains only lowercase letters, numbers and underscores.

Params

no Params

Returns

A string containing the Areas hook-key, which is used for the dynamic part of action- and filter-names.

Examples

var area = DiviArea.getArea();
console.log( area.theKey() ); // Sample output: divi_area_74335

Notes

No notes

Was this article helpful?

Related Articles