Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808

Warning: foreach() argument must be of type array|object, string given in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 813
PUM_Site_Popups::preload_popup_by_id_if_enabled( int $popup_id )

Preloads popup, if enabled


Description Description


Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808

Warning: foreach() argument must be of type array|object, string given in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 813

Parameters Parameters

$popup_id

(Required) The popup's ID.


Top ↑

Source Source

File: classes/Site/Popups.php

	public static function preload_popup_by_id_if_enabled( $popup_id ) {
		if ( ! in_array( $popup_id, self::$loaded_ids ) ) {
			$popup = pum_get_popup( $popup_id );
			if ( $popup->is_enabled() ) {
				self::preload_popup( $popup );
			}
		}
	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.15 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.