* @since 1.0.0 * * @var string $modal_slug Unique slug that can be addressed by a link or button. * @var string $modal_content The modal content. May contain HTML. * @var string $modal_title The modal title. * @var string $cancel_action Show/Hide cancel button. * @var string $close_action Adds another close button that can trigger an action. * @var string $close_form Add a form ID. This form will be submitted after clicking the close and action button. * @var string $close_validation A JavaScript validation function. The function has to return true or the form won't be submitted. */ $close_validation_object = [ 'function' => $close_validation, 'modal_id' => "#modal-$modal_slug", ]; ?> Close
×