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
Params
delay
- The delay (in milliseconds) to wait after initialization, before the Area should be detached from the document.
The default delay is 500ms.
Returns
The filtered delay (integer). When the return value is no valid number or a value below 0, the delay is set to 0.
Notes
No notes