Theme Check expects _n() to have at most three parameters, but it has four
-
According to https://developer.wordpress.org/reference/functions/_n/ you need four parameters if specifying a textdomain. However, if
_n()
is used with four parameters, Theme Check throws aWARNING: Found a translation function that has an incorrect number of arguments
. The same goes for_nc
,__ngettext
,_nx
and_n_js
.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Theme Check expects _n() to have at most three parameters, but it has four’ is closed to new replies.