1. Home
  2. Knowledge Base
  3. Popups for Divi

Popups for Divi

doAction( “load” )

Fires after the API was fully loaded, but before it is initialized

DiviArea.Utils.getOption()

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

DiviAreaItem.isPrepared()

Tests, if the Area is fully initialized.

DiviArea.addActionOnce()

Same as addAction() but the callback is unhooked again when the action is called the next time. This function ensures,...

DiviAreaItem.get()

Returns a jQuery element of the current area.

DiviArea.Utils.toPixel()

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

doAction( “area_close_button” )

Allows customization of the default close button

DiviArea.Data.sanitizeId()

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

applyFilters( “get_option_{key}” )

Filters the value of a JS option

applyFilters( “ignore_overlay_click” )

Allows to ignore the click on the popup overlay