
JavaScript Error
But there is a known issue with older JavaScript code. If your plugin or theme contains code snippet like one below, you will get error message:
“Uncaught Error: Syntax error, unrecognized expression: a[href=#scroll-top]”

JavaScript Error
Override WordPress option
Thanks to the WordPress core developers team it is not only possible but even simple. The only special thing you need to know is the WordPress option name.
In order to change some WordPress option value for the user, user role, date, time, post, etc. use proposed code snippet as the starting point. The code sample below automatically replaces global WordPress administrator email admin_email
option value with own email of the current user with “Administrator” role. Just insert this code to your active theme functions.php file in order it starts working: