{"id":12378091,"date":"2020-01-29T17:40:11","date_gmt":"2020-01-29T17:40:11","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/force-calculate-without-user-change\/"},"modified":"2020-01-29T17:40:11","modified_gmt":"2020-01-29T17:40:11","slug":"force-calculate-without-user-change","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/force-calculate-without-user-change\/","title":{"rendered":"Force calculate without user change?"},"content":{"rendered":"<p>Hi, so glad to have found this plugin&#8230; Think it&#8217;s going to be fantastic!<\/p>\n<p>Here&#8217;s my use case: using ACF repeater field to hold a table of bulk licence purchase histories, e.g.<br \/>\nYear | Purchased | Used | Expired<br \/>\n2018 | 10 | 5 | Yes<br \/>\n2019 | 10 | 7 | Yes<br \/>\n2020 | 10 | 1 | No<\/p>\n<p>Using your plugin, I can now add a calculated value to show how many licences remain in a single row (Purchased &#8211; Used) and then to only display if Expired equals No: so far so good.<\/p>\n<p>I notice however that the calculation only occurs when a user record is saved.  Is there any way to &#8216;force&#8217; the system to calculate for all existing records rather than editing each and every user record?  (It will of course be fine going forwards as if more licences are bought\/used, it will update the table, but I want to be able to show all uses their remaining available licences without them having to do something first ideally!)<\/p>\n<p>Many thanks<\/p>\n","protected":false},"template":"","class_list":["post-12378091","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12378091","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12378091\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=12378091"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}