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

No notes

Was this article helpful?

Related Articles

Need Support?

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