{"id":16030590,"date":"2022-09-21T12:19:39","date_gmt":"2022-09-21T12:19:39","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/custom-function-for-calculated-fields\/"},"modified":"2022-09-21T12:19:39","modified_gmt":"2022-09-21T12:19:39","slug":"custom-function-for-calculated-fields","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/custom-function-for-calculated-fields\/","title":{"rendered":"Custom function for calculated fields"},"content":{"rendered":"<p>Hello, I would like to use a custom function like a for loop in javascript to calculate the value of a field. Even a &#8220;summation&#8221; operation would be nice, but it seems impossible integrating something like this<\/p>\n","protected":false},"template":"","class_list":["post-16030590","topic","type-topic","status-publish","hentry","topic-tag-custom-function"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16030590","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\/16030590\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=16030590"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}