How to create a shortcode with 1 parameter (atts)

Here is how you should create shortcode. First you will have to define $atts item in get_userdata because $atts is an array. Also I think there is also some issues with uppercase attributes names, so you should use attribute in lower case. So instead of userID, use userid. function getUserEmail_func( $atts ) { $user_info = … Read more

Why “?v=hash” is added to my URLs? [closed]

It was woocommerce, it has a setting “geolocalize users with cache support” which adds this parameter to every single url and link. I noticed that the hash appended was the same in every browser on my computer, so I realized it wasn’t a “session” hash, but an IP address hash.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)