| @@ -447,8 +447,13 @@ | ||
| 447 | 447 | '_srfm_is_ai_generated' => 'boolean', |
| 448 | 448 | ] |
| 449 | 449 | ); |
| 450 | 450 | |
| 451 | + // NOTE: `_srfm_form_views` is intentionally NOT registered here. It is a | |
| 452 | + // server-side counter written only by Form_Views (get/add_post_meta + atomic | |
| 453 | + // SQL). Exposing it to the block editor via show_in_rest let a form save / | |
| 454 | + // autosave round-trip a stale value and clobber the live count back to 0. | |
| 455 | + | |
| 451 | 456 | // Form Custom CSS meta. |
| 452 | 457 | register_post_meta( |
| 453 | 458 | 'sureforms_form', |
| 454 | 459 | '_srfm_form_custom_css', |