Auto backup before automatic WordPress updates

you should be able to use this hook which fires just before an auto update: do_action( ‘pre_auto_update’, $type, $item, $context ); $type can be ‘core’, ‘theme’, ‘plugin’, ‘translation’ a specific solution would depend on your particular backup plugin/service, but as long as this plugin/service provides either suitable hooks or an API it should be doable … Read more

Skip file when plugin updated

On you future code files in your plugin, do not include the ‘option’ file in the repository. Since it is not included in the repository zip, the file (if it exists) will not be overwritten on the user’s system. You may need some code in your plugin to create the file on activation with some … Read more

Unable to update wordpress

This is a permissions (solved by chmod) issue. You don’t have enough privileges (755 at least) for WordPress to update. This also means you can’t write to wp-uploads and so on. Check this out: https://stackoverflow.com/questions/18352682/correct-file-permissions-for-wordpress

Override plugin functions in functions.php

It is possible to filter the get_bloginfo(), but you’ll have to find a way to fine tune the conditional, because the override is global… add_filter( ‘pre_option_blogname’, ‘wpse_58030_override_blogname’ ); function wpse_58030_override_blogname( $bool ) { // If not page with ID == 28, do nothing if( !is_page( 28 ) ) return false; // Change the ‘blogname’ return … Read more

How do I allow users to follow a post and then allow admins to email all users who have followed that post?

I don’t think its polite to send email to all users who Favorited your post. Because some people favorite your post to bookmark it. So don’t combine favorite with follow. So here is my suggestion: For bookmarking, use WP favorite posts plugin. As for the follow there is no plugin exists for normal wordpress installation. … Read more

Do extra plugin files get deleted during an upgrade?

Yes, the entire old directory will be deleted. So store files in the upload directory and other data in the database to keep all changes. From class Plugin_Upgrader: //Hooked to upgrade_clear_destination function delete_old_plugin($removed, $local_destination, $remote_destination, $plugin) { global $wp_filesystem; if ( is_wp_error($removed) ) return $removed; //Pass errors through. $plugin = isset($plugin[‘plugin’]) ? $plugin[‘plugin’] : ”; … Read more

How can the temporary update directory be changed?

Impossible. The path is hard coded in many places (wp-admin/includes/update-core.php for example). I think this is worth a Trac ticket, if there isn’t one already. We can move the directories for plugins, themes and mu-plugins. This is the last thing why we need a wp-content directory at all. Update There was a short discussion in … Read more

Upgrading themes never works

Could not create directory is still a permissions error; have you checked Changing File Permissions « WordPress Codex? Are wp-content, themes and plugins 755? Any file that needs write access from WordPress should be owned or group-owned by the user account used by the WordPress (which may be different than the server account). For example, … Read more

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