I want to share local developement and staging DB — Is this very smart or very stupid?

WordPress, and many of its plugins, store configuration data in the database. That alone could cause issues for the setup you described, but the urls of every link will also be stored fully canonicalized. So, unless you plan to test your staging setup from “http://localhost“, you will have serious issues trying to click around multiple … Read more

How to add custom status to quick edit

Unfortunately there are no filters or actions for modifying the post status select in quick edit (WP_Posts_List_Table::inline_edit()) – you’d need to resort to JavaScript: (function($){ $( “select[name=_status]” ).each( function () { var value = $( this ).val(); if ( value === “pending” ) $( “option[value=pending]”, this ).after( “<option value=”status-1″>Status 1</option>” ); else if ( value … Read more

Fastest way to update a theme

git is probably by far the fastest and easiest way to update anything assuming you use git for development. The alternative you hinted to in the question is to use the wordpress update API, but for this you will need to set up an update server. There is some code for that here https://github.com/YahnisElsts/wp-update-server. It … Read more

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