Summarize getField/setVal | WordPress.org

[ad_1]

Hello

Thanks for your great plugin.

How can I summarize this code?

(function()
if(fieldname505==1 )

return (function() var result = 1; getField(fieldname524)();
if(fieldname505==2 )

return (function() var result = 2; getField(fieldname524)();
if(fieldname505==3 )

return (function() n).setVal(result); return result;)();
....
....
....
if(fieldname505==20 )

return (function() var result = 20; getField(fieldname524)();
)()
  • This topic was modified 5 hours, 28 minutes ago by Mohsen.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer