This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This script just need to run once | |
* You can remove this script after the copy completed | |
*/ | |
function copy_parent_mods(){ | |
$parent_mods = get_option( 'theme_mods_' . get_template() ); | |
foreach ( (array) $parent_mods as $parent_mod => $parent_mod_value ) { | |
set_theme_mod( $parent_mod, $parent_mod_value ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# Get all domains as array | |
# You can change /etc/trueuserdomains to /etc/userdomains if you want to include the sub domain | |
domains=(`cat /etc/trueuserdomains | cut -d: -f1`) | |
echo "Found ${#domains[@]} domains" | |
echo -e "\n" |