Is there any plugin hook that I can latch onto once a site is freshly installed?

if you have a file at WP_CONTENT_DIR/install.php it will be run before the upgrade starts. If you want to override specific option then you can use the pre_update_option_$optionname filter to control the value written to the DB. something like add_filter(‘pre_update_option_admin_email’,’wpse_120475_myadminmail’,10,2); function wpse_120475_myadminmail($newemail,$oldemail) { return ‘[email protected]’; } caution – wasn’t tested but I assume that the … Read more

Moving to a new domain in the same server

You are facing the error because the database tables have old domain stored in all tables and post meta data. You need to replace all instances of previous domain with the new one in the database, the following link will help: https://interconnectit.com/products/search-and-replace-for-wordpress-databases/ You should also update your permalinks after the above process.

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