update user information

You’re not closing the first if tag. /* Update user information. */ if ( !empty( $_POST[‘url’] ) ){ update_user_meta( $current_user->id, ‘user_url’, esc_url( $_POST[‘url’] ) ); } else{ delete_user_meta( $current_user->id, ‘user_url’); } Also, you should use esc_url_raw on a raw url and then if you’re echoing into the html use esc_url. You also shouldn’t save esc_attr … Read more

Which action does wp_update_user triggers?

wp_update_user() is in /wp-includes/user.php lines 1401-1439. It uses wp_insert_user() (same file, lines 1254-1380) to update the existing user or add a new one if the user doesn’t exist. That function is where the various filters and actions affecting user account info live, and shows everything you can do to the $user object.

Problems updating wordpress

Try adding all of the following: define(‘FS_METHOD’, ‘ftpext’); define(‘FTP_BASE’, ‘/path/to/wordpress/’); define(‘FTP_CONTENT_DIR’, ‘/path/to/wordpress/wp-content/’); define(‘FTP_PLUGIN_DIR ‘, ‘/path/to/wordpress/wp-content/plugins/’); #define(‘FTP_PUBKEY’, ‘/home/username/.ssh/id_rsa.pub’); #define(‘FTP_PRIKEY’, ‘/home/username/.ssh/id_rsa’); define(‘FTP_USER’, ‘username’); define(‘FTP_PASS’, ‘password’); define(‘FTP_HOST’, ‘ftp.example.org’); define(‘FTP_SSL’, false); This is sourced from the official wp-config document here.

custom changes removed after plugin update

If it’s just a CSS change, load your own CSS stylesheet to override their CSS. If it’s the HTML of the plugin, then you will need to look at filter hooks to see what you can change. Some plugins are developer friendly and supply some filter hooks allowing you to change various things the plugin … Read more

WordPress 3.8.1 update error

The user your server is running as needs to be able to write and modify the files in WordPress core. Namely that the updater was told: Permission denied when it tried to change wp-admin/includes/update-core.php. What the permissions will need to be for this to work are different from server to server. This article talks more … Read more