db_twitter_feed

The DevBuddy Twitter Feed Plugin db twitter feed function.

Description

db_twitter_feed( (null) $feed_config = null ); 

Parameters (1)

0. $feed_config — Optional. (null) => null
The feed config.

Usage

  1. if ( !function_exists( 'db_twitter_feed' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'devbuddy-twitter-feed-plugin/lib/twitter-feed-template-tag.php'; 
  3.  
  4. // The feed config. 
  5. $feed_config = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = db_twitter_feed($feed_config); 
  9.  

Defined (1)

The function is defined in the following location(s).

/lib/twitter-feed-template-tag.php  
  1. functiondb_twitter_feed $feed_config = NULL ) { 
  2. $the_feed = new DB_Twitter_Feed( $feed_config ); 
  3.  
  4. if ( ! $the_feed->is_cached ) { 
  5. $the_feed->retrieve_feed_data(); 
  6.  
  7. $the_feed->render_feed_html(); 
  8.  
  9. $the_feed->cache_output( $the_feed->options['cache_hours'] ); 
  10.  
  11. if ( $the_feed->is_shortcode_called ) { 
  12. return $the_feed->output; 
  13. } else { 
  14. echo $the_feed->output; 
  15.