PluginProbe
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar / 3.3.3
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar v3.3.3
3.3.3 3.3.2 3.3.1 3.3.0 3.2.14 3.2.13 3.2.12 3.2.11 3.2.10 3.2.9 3.2.8 3.2.7 trunk 0.2.5.5 0.2.5.6 0.2.5.7 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 All 158 releases
← All changes | includes/Abilities/Manage/CreateNotification.php +11 -0 3.3.1 → 3.3.3 View file →
@@ -155,8 +155,19 @@
155 155 $config['notification-template'] = $default_template;
156 156 }
157 157 }
158 158
159 + // Inline types (WooCommerce, EDD, LearnDash, LearnPress, Tutor inline)
160 + // only render at the hooks in `inline_location`, which the builder also
161 + // fills from the theme through nx_themes_trigger. Backfill it the same
162 + // way; a record without it would never display.
163 + if ( empty( $config['inline_location'] ) ) {
164 + $default_location = BuilderInfo::default_inline_location_for_theme( $config['themes'] );
165 + if ( ! empty( $default_location ) ) {
166 + $config['inline_location'] = $default_location;
167 + }
168 + }
169 +
159 170 if ( ! empty( $input['title'] ) ) {
160 171 $config['title'] = sanitize_text_field( $input['title'] );
161 172 } elseif ( ! isset( $config['title'] ) ) {
162 173 $config['title'] = __( 'Untitled notification', 'notificationx' );