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.


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


Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.