| @@ -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' ); |