doAction( "init_overlay", $overlay );
Allows custom initialization of the background overlay.
Params
$overlay
- The jQuery object of the overlay element.
Examples
// Apply a custom class to the overlay div.
DiviArea.addAction( 'init_overlay', function( overlay ){
overlay.addClass( 'my-class' );
});
Notes
Unlike show_overlay
, this action is only fired once per page load (right before the first time a Popup is displayed). The overlay is persistent.