HEX
Server: Apache
System: Linux 244.240.109.208.host.secureserver.net 5.14.0-611.11.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Dec 3 09:47:37 EST 2025 x86_64
User: icsla (1002)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/icsla/public_html/wp-content/plugins/popup-maker/includes/namespaced/popups.php
<?php
/**
 * Popup functions.
 *
 * @package   PopupMaker
 * @copyright Copyright (c) 2024, Code Atlantic LLC
 */

namespace PopupMaker;

defined( 'ABSPATH' ) || exit;

use function PopupMaker\plugin;

/**
 * Get the current popup.
 *
 * @return Popup|null
 *
 * @since 1.21.0
 */
function get_current_popup() {
	return get_global( 'current_popup', null );
}

/**
 * Set the current popup.
 *
 * @param Popup|null $popup
 *
 * @since 1.21.0
 */
function set_current_popup( $popup ) {
	set_global( 'current_popup', $popup );
	/**
	 * Here for backward compatibility.
	 *
	 * @deprecated 1.21.0
	 */
	pum()->current_popup = $popup;
}