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
#I currently have this method that returns a list of reads from a cube. | |
/** | |
* returns the current reads for the device id passed to it | |
* @param string $device_id the device uid to use | |
* @return array the device current reads from the API | |
*/ | |
public function getDeviceCurrentReads($device_id = NULL, $filter = false) | |
{ | |
if (is_null($device_id)) return NULL; |
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 | |
function get_tweetnest_tweets($args) { | |
global $wpdb; | |
$args = shortcode_atts(array( | |
'count' => 5, | |
), $args); | |
$sql = sprintf("SELECT `tn_tweets`.*, `tn_tweetusers`.`screenname`, `tn_tweetusers`.`realname`, `tn_tweetusers`.`profileimage` | |
FROM `tn_tweets` |