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
https://vip-svn.wordpress.com/plugins/ | |
^ install to wp-content/themes/vip/plugins | |
Jetpack |
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 | |
/** | |
* Plugin Name: Unrestrict REST API | |
* Plugin URI: https://philipnewcomer.net/2016/05/allow-rest-api-restricted-site-access/ | |
* Description: Allows REST API requests while Restricted Site Access is enabled. | |
* Version: 0.1.0 | |
* Author: Philip Newcomer | |
* Author URI: https://philipnewcomer.net | |
*/ |
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
tell application "System Events" | |
set hiddenFilesDisplayStatus to do shell script "defaults read com.apple.finder AppleShowAllFiles" | |
set hiddenFilesNewDisplayStatus to "NO" | |
if hiddenFilesDisplayStatus is "NO" then | |
set hiddenFilesNewDisplayStatus to "YES" | |
end if | |
do shell script "defaults write com.apple.finder AppleShowAllFiles " & hiddenFilesNewDisplayStatus |
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 | |
// Place in the mu-plugins dir. | |
add_filter( 'woocommerce_subscriptions_is_duplicate_site', '__return_true' ); |
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 | |
echo 'X-Forwarded-IP: '; | |
if ( isset( $_SERVER['X-Forwarded-IP'] ) ) { | |
echo $_SERVER['X-Forwarded-IP']; | |
} | |
echo '<br>REMOTE_ADDR: '; | |
if ( isset( $_SERVER['REMOTE_ADDR'] ) ) { | |
echo $_SERVER['REMOTE_ADDR']; |
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 | |
/** | |
* Recursive function to generate a unique username. | |
* | |
* If the username already exists, will add a numerical suffix which will increase until a unique username is found. | |
* | |
* @param string $username | |
* | |
* @return string The unique username. | |
*/ |
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
{ | |
"dependencies": { | |
"sync-request": "^4.1.0" | |
} | |
} |
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 | |
$upgrading = time(); |