Unyson icon indicating copy to clipboard operation
Unyson copied to clipboard

Make something only if option default values changed

Open sollerpolt opened this issue 9 years ago • 1 comments

Hi all.

I searched a bit, but not found solution.

I want to print inline styles only if default values are changed. Of course I can manage a lot amount of If and compare existing values with defaults, but maybe someone can advice me build-in ore more smart solution?

sollerpolt avatar Nov 21 '17 20:11 sollerpolt

Hi, It is not possible only if you comare its with default values or you can use a function to extract vars from file like fw_get_variables_from_file see doc about it, after that you can do merge or some actions php to manipulate these arrays to remove default values. I think you do not have to think about that we have big themes with a lot of options and it doesn't affect sensitively speed site, arbitrary extract only changed values can cause many bugs, your time, memory consumption etc.

ViorelEremia avatar Nov 22 '17 08:11 ViorelEremia