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 | |
class View_Variables { | |
public static function dump( $variables, $die = true ) { | |
if ( is_array( $variables ) ) { | |
foreach ($variables as $var ) { | |
var_dump( $var ); | |
} | |
} else { | |
var_dump( $variables ); |
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 | |
$array = get_option('wpseo-premium-redirects'); | |
foreach ( $array as $key => $row ) { | |
file_put_contents( ABSPATH . 'redirects.csv', $key . ',' . $row[ 'url' ] . "\n", FILE_APPEND ); | |
} |
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
{ | |
"heading": | |
"Thank you for your interest in the MotorTrend / Hot Wheels<sup>®</sup> promotion!", | |
"logos": [ | |
"https://mtg-mtod-production.s3-us-west-2.amazonaws.com/images/hotwheels-logo.png", | |
"https://mtg-mtod-production.s3-us-west-2.amazonaws.com/images/motortrend-logo-desktop-red.svg" | |
], | |
"messaging": { | |
"campaign.code.already.used": | |
"We are sold out at this time, but look for more opportunities in the future from us. In the meantime learn more about MotorTrend and subscribe to our streaming service by clicking <a href="/freetrial/">on this link</a>.", |
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
const SymbolKeys = { | |
Bitcoin: 'bitcoin', | |
Cash: 'cash', | |
Cherry: 'cherry', | |
Diamond: 'diamond', | |
Gold: 'gold', | |
}; | |
// If all rollers equal one of the `Prize` keys, we'll multiply the value by | |
// the amount the user entered |
OlderNewer