| @@ -709,9 +709,11 @@ | ||
| 709 | 709 | $settings = $this->preserve_role_settings( $settings ); |
| 710 | 710 | } |
| 711 | 711 | |
| 712 | 712 | $this->set( 'settings', $settings ); |
| 713 | - delete_transient( 'nx_get_field_names' ); | |
| 713 | + // Module toggles change which builder fields exist, and | |
| 714 | + // NotificationX::normalize_post() coerces field types from this cache. | |
| 715 | + delete_transient( 'nx_builder_fields' ); | |
| 714 | 716 | // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reviewed for the NotificationX codebase: acceptable in this context. |
| 715 | 717 | do_action( 'nx_settings_saved', $settings ); |
| 716 | 718 | return true; |
| 717 | 719 | } |
| @@ -781,8 +783,9 @@ | ||
| 781 | 783 | 'yt_client_secret', |
| 782 | 784 | 'openai_access_token', |
| 783 | 785 | 'mailchimp_api_key', |
| 784 | 786 | 'activecampaign_api_key', |
| 787 | + 'brevo_api_key', | |
| 785 | 788 | 'convertkit_api_key', |
| 786 | 789 | 'convertkit_api_secret', |
| 787 | 790 | 'google_review_api_key', |
| 788 | 791 | 'google_youtube_api_key', |