How to do one-off import or data migration?

Here’s what I would suggest – store your theme version in the database, compare it with your package version, if there’s a difference then load in your upgrade/install operations: define( ‘THEME_PREFIX_VERSION’, ‘X.X’ ); /** * Run upgrade/install. */ function theme_prefix_install() { require_once dirname( __file__ ) . ‘/install.php’; } if ( version_compare( get_option( ‘theme_prefix_version’ ), THEME_PREFIX_VERSION, … Read more

Links after changing hosting and domain

Don’t forget to copy the .htaccess file. Your permalinks will broken if you forgot to copy that file. Also usually I’m using text editor (mine using Notepad++) to open the database file then find all “201.0.0.1/mysite” value and change it to “mysite.com”.

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