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/bash | |
#################################### | |
# Rsync media to CDN | |
#################################### | |
rsync -avzhe ssh /livehost/wp-content/uploads/ cdnuser@cdnhost:/cdnhost/wp-content/uploads/ | |
rsync -avzhe ssh /livehost/wp-content/plugins/ cdnuser@cdnhost:/cdnhost/wp-content/plugins/ | |
rsync -avzhe ssh /livehost/wp-content/themes/ cdnuser@cdnhost:/cdnhost/wp-content/themes/ | |
rsync -avzhe ssh /livehost/wp-content/mu-plugins/ cdnuser@cdnhost:/cdnhost/wp-content/mu-plugins/ | |
rsync -avzhe ssh /livehost/wp-includes/ cdnuser@cdnhost:/cdnhost/wp-includes/ |
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
function parent_style_cache() { | |
global $wp_styles, $wpdb; | |
$updateFlag = 0; | |
$returnCss = null; | |
/** | |
* Check if our table exists else create | |
*/ |
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
$gstStateVsCode = [ | |
'Andaman and Nicobar Islands' => 35, | |
'Andhra Pradesh' => 37, | |
'Arunachal Pradesh' => 12, | |
'Assam' => 18, | |
'Bihar' => 10, | |
'Chandigarh' => 4, | |
'Chattisgarh' => 22, | |
'Dadra and Nagar Haveli' => 26, | |
'Daman and Diu' => 25, |
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
this.StateVsGstIndex = [ | |
{state: 'Andaman and Nicobar Islands', gstcode: 35 }, | |
{state: 'Andhra Pradesh', gstcode: 37 }, | |
{state: 'Arunachal Pradesh', gstcode: 12 }, | |
{state: 'Assam', gstcode: 18 }, | |
{state: 'Bihar', gstcode: 10 }, | |
{state: 'Chandigarh', gstcode: 4 }, | |
{state: 'Chattisgarh', gstcode: 22 }, | |
{state: 'Dadra and Nagar Haveli', gstcode: 26 }, | |
{state: 'Daman and Diu', gstcode: 25 }, |