Divi Areas Pro

applyFilters( “pre_init_area” )

Called before a new Divi Area is initialized

DiviArea.Data.countVisibleAreas()

Count the currently visible Areas.

DiviArea.Utils.getOption()

Fetches the value of a DiviAreaConfig option. Params Returns The option value Notes No notes

doAction( “position_area” )

Action to modify the Area position on the screen.

DiviArea.Data.sanitizeId()

Sanitize an area ID string: Return a ID with leading hash.

DiviAreaItem.hasClass()

Shortcut to `jQuery.hasClass()` on the Area.

DiviArea.Utils.toPixel()

Converts any CSS unit to pixels - at least any CSS unit that is available in Divi Areas.

DiviAreaItem.addClass()

Shortcut to `jQuery.addClass()` on the Area.

doAction( “show_overlay” )

Fired after the background overlay is displayed

DiviArea.markClosed()

Mark an area as "closed" for a certain number of minutes.