Set custom messages for post update/save

http://codex.wordpress.org/Function_Reference/register_post_type example: //add filter to ensure the text Book, or book, is displayed when user updates a book add_filter(‘post_updated_messages’, ‘codex_book_updated_messages’); function codex_book_updated_messages( $messages ) { global $post, $post_ID; $messages[‘book’] = array( 0 => ”, // Unused. Messages start at index 1. 1 => sprintf( __(‘Book updated. <a href=”https://wordpress.stackexchange.com/questions/17885/%s”>View book</a>’), esc_url( get_permalink($post_ID) ) ), 2 => … Read more

Enable update notification, disable updates

Add the following code in your child theme’s functions.php or package it as a custom plugin to easily enable/disable: add_action( ‘wp_before_admin_bar_render’, ‘wpse161696_toolbar_menu’ ); add_action( ‘admin_menu’, ‘wpse161696_updates’ ); function wpse161696_toolbar_menu() { // Remove update menu item from the toolbar global $wp_admin_bar; $wp_admin_bar -> remove_menu( ‘updates’ ); } function wpse161696_updates() { // Remove all updating related functions … Read more

WP-CLI not recognizing commercial plugin updates

What you experienced may be some network level problem or someone temporary removed the download resources. For instance before the update. Most of the details you can get from the source code https://github.com/wp-cli/wp-cli. Plugin update function in there looks like this. function update( $args, $assoc_args ) { if ( isset( $assoc_args[‘version’] ) ) { foreach … Read more

How should I structure a WP website project using git and updating from WP dashboard?

From my perspective there are two issues with your plan – Git and “conventional” structure. So basically everything. 🙂 Git (and version control in general) is a poor tool for whole site stacks. Been there, done that, it hurt a lot. What you call an “unconventional” structure with content separated from core has been a … Read more

Why are there updates for obsolete WordPress versions?

The only reason why the 3.3.3 milestone was marked as completed is because leaving the milestone open interfered with our ticket reports for 3.4.1. (I forgot that milestone closures are reflected in the timeline.) Generally speaking, we assign tickets to the next minor milestone if they are reporting an immediate regression. So, a regression in … Read more

Admin user can’t update WP

Try to make a new admin user in the db. Follow these steps you should be able to create a new admin user, then update and then you can give your old user admin rights again. Or use the new user. Your old user might have wrong setting in the DB http://www.dnawebagency.com/how-to-add-an-admin-user-to-the-wordpress-database

Get rid of Another update is currently in progress

It is an automatic lock to prevent simultaneous core updates. It will be gone after 15 minutes. If you don’t want to wait, delete the record from options table – usually wp_options. Since WordPress 4.5: option_name=”core_updater.lock” If you have an older installation (before WordPress 4.5): option_name=”core_updater”