diff --git a/includes/modules/menus.php b/includes/modules/menus.php index 6faad872c..cd789d759 100644 --- a/includes/modules/menus.php +++ b/includes/modules/menus.php @@ -115,6 +115,10 @@ public static function merge_item_data( $item ) { } if ( isset( $item->popup_id ) ) { + $popup = pum_get_popup( $item->popup_id ); + if ( $popup->is_enabled() ) { + PUM_Site_Popups::preload_popup( $popup ); + } $item->classes[] = 'popmake-' . $item->popup_id; }