php - Where to call the function ..? -


i new plugin development/editing wordpress. using famous plugin called polylang multilingual support. , using plugin called clean , simple contact form creating ajax based contact form.

now, looking documentation polylang have found following function:

register string allows plugins add own strings in “strings translation” panel. function must called on admin side (the functions.php file ok themes). usage:

pll_register_string($name, $string, $multiline); 

as says, function must called on admin side. unable figure out means ...

i intend add few custom strings strings translation tab. calling function functions.php in theme worked didn't translate strings plugin. plugin doesn't yet support japanese having take path.

can tell me supposed call function. tried call in class.view.php , file name: clean-and-simple-contact-form-by-meg-nicholas.php

but, both ended giving fatal error saying function undefined. what's exact meaning of "the function must called on admin side of plugin..."

thanks , regards !

you might need adjust ajax plugin, function gets called in admin. (i don't know ajax plugin sure there configuration part, called somewhere in admin panel) way create plugin, taking care of function call. sure, new plugin has link can call admin, run in right userspace.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -