WordPress OSINT, maintenance or security needs? Reach out!
TLDWP

Plugin: calculated-fields-for-acf (Used by 7 domains)

Calculated fields for ACF

👤 wundermatics 📦 v1.3.2 🔗 Plugin Homepage

Adds a formula fields ot Advanced Custom Fields that allows you to perform simple math based on field values. Calculations are updated dynamically via ajax while editing a post on the backend post editor as well as on front end forms.

Requirements

Calculated fields requires Advanced Custom Fields 5.0 or later and works with Pro as well as the standard version.

Frontend forms

Beginning in version 1.2.3, Calculated fields for ACF supports frontend forms created using the acf_form() function (built in to Advanced Custom Fields).

Formulas

Calculated fields adds a new setting “Formula” to the the ACF field editor. Formulas supports referring to other fields in the same Field group using the field name. If a formula is added to a sub field inside a repeater field, the name refers to another sub field in the same repeater.

A sub field inside a repeater field can also refer to a parent field using the “parent.”” prefix.

A formula can contain the basic mathematical operations: plus (+), minus (-), multiply (*), division (/) and power of (^). Formulas can also contains functions like sin, cos, arcsin, log, ln, sqrt, abs. Parentheses are supported.

If an expression can’t be evaluated due to invalid syntax or referring to undefined field names, it will silently return zero.

Examples of valid expressions (note, no equal sign at the beginning):

  • fieldA * 2
  • fieldA * fieldB
  • abs(fieldA) * (2 + sqrt(fieldB))
  • amount * parent.price

Conditional operators

An expression can also contain a conditional expression that will return either 0 or 1. The supported operators are:

  • Equals (==) – Returns 1 when two values are equal, 0 otherwise
  • Not equals (!=) – Returns 1 when two values are not equal, 0 otherwise
  • Greater than (>) – Returns 1 when the first operand is greater than the second, 0 otherwise
  • Greater than or equal (>=) – Returns 1 when the first operand is greater than or equal to the second, 0 otherwise
  • Less than (<) – Returns 1 when the first operand is less than the second, 0 otherwise
  • Less than or equal (<=) – Returns 1 when the first operand is less than or equal to the second, 0 otherwise

Examples of valid expressions using conditional operators:

  • 10 == 10 (returns 1)
  • 10 == 2 (returns 0)
  • 10 > 2 (returns 1)
  • 10 < 2 (returns 0)
  • 10 <= 10 (returns 1)

Rounding functions

Round a decimal value to the nearest integer. Supported functions are:

  • round() – Uses standard mathematical rounding rules to round to nearest integer
  • ceil() – Rounds the value to the next higher integer
  • floor() – Rounds the value to the next lower integer

Examples of valid expressions using rounding functions:

  • round(10.2) (returns 10)
  • round(10.9) (returns 11)
  • round(10.888888 * 10) / 10 (returns 10.9)
  • ceil(10.2) (returns 11)
  • floor(10.2) (returns 10)

Note that the round() function only takes one parameter and always round to an integer. If you need to round to a higher precision, multiply and divide as shown in third example above.

Group fields (new from 1.2.4)

Fields defined as part of a group, subfields, can be addressed using the group name as a prefix. Inside the group, a field defined on the parent level can be addressed using the “parent” prefix. See examples below:

Valid formula to use the value of field “foobar” defined inside the group “group2”:
* group2.foobar + 10

Valid formula in a field inside a group (assuming the parent has a field named count):
* parent.count * 22

Array functions for repeater fields

If repeater fields are used, a calculated field in the parent field group can summarize a specific repeater sub fields using the aggregation functions sum, count, average, min or max. For example, the expression: “Sum(orderlines.amount)”” will return the sum of all the “amount” fields in the repeater field “orderlines”.

The available array functions are:

  • sum()
  • average()
  • count()
  • min()
  • max()

Note that anything after the dot (.) in the aggregate expression is an expression in itself. It’s perfectly OK to write a formula like: “Sum(orderlines.price * amount)”. This expression will walk over all lines in the “orderlines” repeater field, perform the calculation “price * amount” and return the sum of all lines.

Note that when working with aggregate functions, parentheses can not be used. If you need to aggregate a more complex calculation, you should add an extra field in the repeater group and let the aggregate function work on this extra field.

Data type and calculation order

Calculated fields works with the assumption that all fields are defined as numeric in the ACF editor. Using a text field in a formula WILL PRODUCE UNPREDICTABLE RESULTS.

Calculations are made as the custom field is stored to the database. To minimize the impact of performance, Calculated fields rely on field order. A formula field can only refer to fields ordered BEFORE itself. A formula field that refers to a field ordered after it WILL PRODUCE UNPREDICTABLE RESULTS.

DomainExposuresHeadersLast Checked
l*t*o*a.com F 2026-04-08 09:36:42
c*m*n*n*o*r*n*e*a*.org 2025-11-12 06:42:29
a*p*c*o*o*o*d*.be 2025-11-12 01:01:36
p*k*b*c*.com 2025-11-09 17:10:25
i*s*d*n*i*y.com 2025-11-08 08:22:41
i*a*c*n*u*t*r*a.com 2025-11-08 07:26:28
i*-*0*m*n.com 2025-11-08 07:24:50

Top 50 Plugins

Plugin Count
elementor 3,346,694
contact-form-7 2,897,965
elementor-pro 1,853,788
woocommerce 1,587,290
revslider 1,105,702
js_composer 702,257
jetpack 517,588
wp-rocket 501,904
essential-addons-for-elementor-lite 499,296
header-footer-elementor 447,736
elementskit-lite 424,476
gutenberg-core 380,985
google-analytics-for-wordpress 369,842
instagram-feed 366,848
google-site-kit 354,591
cookie-law-info 339,420
complianz-gdpr 335,485
gravityforms 331,898
wpforms-lite 326,075
astra-sites 319,995
sitepress-multilingual-cms 286,622
litespeed-cache 283,530
bluehost-wordpress-plugin 267,424
gtranslate 218,961
coblocks 197,829
cookie-notice 197,693
the-events-calendar 166,559
premium-addons-for-elementor 165,238
gutenberg 164,420
mailchimp-for-wp 160,686
astra-addon 159,214
bb-plugin 158,593
popup-maker 155,789
LayerSlider 150,799
pro-elements 148,836
wp-smushit 148,694
creame-whatsapp-me 147,567
click-to-chat-for-whatsapp 146,663
sg-cachepress 138,354
tablepress 137,481
custom-fonts 137,270
woocommerce-gateway-stripe 130,252
royal-elementor-addons 129,955
duracelltomi-google-tag-manager 127,494
smart-slider-3 127,102
pixelyoursite 125,192
ultimate-addons-for-gutenberg 123,726
cleantalk-spam-protect 123,622
fusion-builder 118,887
megamenu 118,708

Top 50 Themes

Theme Count
hello-elementor 1,045,895
astra 915,652
Divi 847,091
pub 250,982
generatepress 196,254
flatsome 194,619
Avada 175,335
h4 168,672
oceanwp 144,036
kadence 125,835
enfold 104,257
bb-theme 103,614
twentytwentyfive 101,632
salient 101,219
blocksy 100,136
twentytwentyfour 99,471
cocoon-master 94,680
betheme 85,737
woodmart 80,455
twentyseventeen 78,904
dt-the7 68,742
neve 60,598
twentytwentyone 52,263
bridge 51,313
swell 50,610
lightning 45,097
twentytwentythree 44,634
twentytwenty 44,027
Avada-Child-Theme 41,827
gox 39,495
Impreza 35,843
bricks 35,518
Newspaper 34,068
twentytwentytwo 33,567
storefront 27,571
yith-wonder 27,434
extendable 27,275
pro 26,832
epik-redesign 26,685
uncode 26,262
themify-ultra 26,061
twentysixteen 25,484
sydney 25,004
twentyfifteen 24,561
Total 22,368
porto 21,720
hestia 20,041
go 19,688
thrive-theme 18,926
popularfx 18,730