Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
if ( $response ) {
$csv = csv_with_headers_to_array( $response['body'] );
if ( array_key_exists('time_period', $csv[0]) ) {
set_transient('_libsyn_transient', 'found', 60 * 60);
set_transient('_libsyn_month', $csv[0]['time_period'], 0);
set_transient('_libsyn_count', $csv[0]['downloads'], 0);
} else {
return;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.