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

applyFilters( “area_preparation_time” )

applyFilters( "area_preparation_time", delay );
applyFilters( "area_preparation_time_{key}", delay );

Filter the default detach delay when creating a new Area.

The dynamic part of the filter name is the sanitized Area key. See DiviAreaItem.theKey() for details.

When this filter is called, the Area was initialized, hidden, and moved to the end of the body tag. After the given delay, the Area will be detached from the document and stored in memory, until it is displayed.

This allows other scripts, like Ninja Forms, to access and initialize contents of the Area.

This filter is only available in Divi Areas Pro


delay int, required
The delay (in milliseconds) to wait after initialization, before the Area should be detached from the document.
The default delay is 500ms.


The filtered delay (integer). When the return value is no valid number or a value below 0, the delay is set to 0.


No notes

Was this article helpful?

Related Articles

Need Support?

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