This file contains hidden or 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 | |
add_filter( 'SIS/Admin/Post/Display_Thumbnail_Regenerate', '__return_false' ); |
This file contains hidden or 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
var origin = null; | |
if(window.addEventListener) { | |
window.addEventListener('message', onMessage, false); | |
} else { | |
window.attachEvent('onmessage', onMessage); | |
} | |
function onMessage(e) { | |
if(referer !== undefined && e.origin === referer) { |
This file contains hidden or 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
#!/usr/bin/env bash | |
if [ -z "$1" ] | |
then | |
echo "You need to pass the url of the site. Usage ./cron-mu-cli.php http://mysite.fr" | |
exit | |
fi | |
for url in $( wp site list --field=url --url=$1 ) | |
do |
This file contains hidden or 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 | |
// Create fake resource | |
$resource = new \StdClass(); | |
$resource->card = new \StdClass(); | |
$resource->card->id = 1; | |
$resource->card->last4 = '3333'; | |
$resource->card->exp_year = '2019'; | |
$resource->card->exp_month = '01'; | |
$resource->card->brand = 'mastercard'; |
OlderNewer