| @@ -1184,8 +1184,15 @@ | ||
| 1184 | 1184 | |
| 1185 | 1185 | return self::get_items( $this->parsed_dynamic_settings, $setting ); |
| 1186 | 1186 | } |
| 1187 | 1187 | |
| 1188 | + public function reset_render_state(): void { | |
| 1189 | + $this->active_settings = null; | |
| 1190 | + $this->parsed_active_settings = null; | |
| 1191 | + $this->parsed_dynamic_settings = null; | |
| 1192 | + $this->render_attributes = []; | |
| 1193 | + } | |
| 1194 | + | |
| 1188 | 1195 | /** |
| 1189 | 1196 | * Get active settings. |
| 1190 | 1197 | * |
| 1191 | 1198 | * Retrieve the settings from all the active controls. |