Activate Child Theme with Codex

Use switch_theme as already indicated in another answer, but hook it to wpmu_new_blog This function runs when a user self-registers a new site as well as when a super admin creates a new site. hook to ‘wpmu_new_blog’ for events that should affect all new sites. https://codex.wordpress.org/function_reference/wpmu_create_blog If not the code will run constantly, which will … Read more

Multisite Network menu links not updating

Pat J’s answer is correct but left out one important step. In wp-config.php the DOMAIN_CURRENT_SITE constant must be updated or the behavior that brandozz explains will occur. When updating domains for a WordPress Multisite: Update the DOMAIN_CURRENT_SITE constant in wp-config.php define(‘DOMAIN_CURRENT_SITE’, ‘my-domain-name.com’); In DB table named “wp_sitemeta” update “siteurl” meta key In DB tables named … Read more

Subdomains With WordPress

You want a WordPress network aka WP multi site. There is complete documentation on WP Codex. https://codex.wordpress.org/Create_A_Network In Step 3: Installing a Network, select the sub domain option when prompted. If you are converting an existing site, you will get locked into sub folders instead of sub domains. Go with a clean install to avoid … Read more

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