applyFilters( “pre_init_area” )

  1. Home
  2. Knowledge Base
  3. Codex
  4. JS API
  5. JS Filters
  6. applyFilters( “pre_init_area” )
applyFilters( "pre_init_area", handled, area );
applyFilters( "pre_init_area_{key}", handled, area );

This filter is called after a new Divi Area was created, but before it’s fully initialized.

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

This filter allows you to skip the default init-logic of a new Area: When the filter returns a non-false value, the plugin assumes that the Area was initialized and will not do anything like detaching, or displaying it.

Params

handled
(bool, required) Whether the initialization was handled. A non-false return value will skip the default initialization.
area
(DiviAreaItem, required) The new area instance.

Notes

Was this article helpful?

Related Articles